Hi Dwayne,

Thanks for your response.

I am using java property files directly from the source code of the
application. My desired workflow would be to update the source code, allow
the translators do their work, and merge their changes. However, due to the
nature of the application development, there is no string freeze before a
release, but rather a continuous integration approach, so the strings may
change quite a bit. Typically, the translators will do their work once a
certain number of new strings have been implemented by the developers, but
there is a continuous need to modify the strings, syncronize from Pootle,
and then merge the changes back into the source code.

So, there are really two problems. One is that new string appear. I can
seem to be able to solve this problem with an update_from_templates
command, which updates all of the new strings, but also updates the
property files. This is undesirable, and can be solve by reverting the
source code. I tried only updating the templates with update_stores but
this does not seem to propagate the new strings to the other languages.

Second (and I have written about this on the list before, so apologies for
repeating) is that strings which have been deleted from the property files,
are not deleted from the database. The effect of this is that they appear
in Poolte in the translated language only (both as the original as well as
the translation), which is undesirable.

Hope this helps to clarify the problem a bit more. Maybe I just do not
understand the exact workflow, or perhaps I am trying to do something which
is not entirely supported?

Best regards,
Jason



On Thu, Nov 29, 2012 at 3:01 PM, Dwayne Bailey <dwa...@translate.org.za>wrote:

>
>
>
> On 29 November 2012 05:10, Jason Pickering <jason.p.picker...@gmail.com>wrote:
>
>> Hi there. I help to coordinate the translations for a project which uses
>> Java property files. I am including a pretty typical diff at the end of
>> the
>> mail for reference.As you can see, some strings get added, but also some
>> can get deleted.  When I sync my local files from the source code manager,
>> what is the best way to update my Pootle server with the new templates?
>>
>
> Hi Jason,
>
> I'm not sure if you are using .properties files natively in Pootle or if
> you are converting to PO.
>
> Mostly I use PO so these are my usual steps:
>
> 1) Update en-US .properties files
> 2) prop2po -P en-US templates
> 3) Upload new templates on Pootle
> 4) Either update PO files outside Pootle or within Pootle
>
>
>
>
>>
>> Regards,
>> Jason
>>
>> Example diff below.
>>
>> === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-
>> maintenance-user/src/main/resources/org/hisp/dhis/user/
>> i18n_module.properties'
>> ---
>> dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/
>> resources/org/hisp/dhis/user/i18n_module.properties 2012-10-31 13:56:02
>> +0000
>> +++
>> dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/
>> resources/org/hisp/dhis/user/i18n_module.properties 2012-11-05 03:12:14
>> +0000
>> @@ -21,8 +21,8 @@
>>  M_dhis-web-reports=See NRHM Reports module
>>  M_dhis-web-validationrule-local-in=See Validation Analysis module
>>  M_dhis-web-excel-reporting=See Excel Report module
>> -M_dhis-web-caseentry=See Case-Based Data Entry module
>> -M_dhis-web-maintenance-patient=See Patient module
>> +M_dhis-web-caseentry=See Individual Records
>> +M_dhis-web-maintenance-patient=See Persons And Programs module
>>  M_dhis-web-mapping=See GIS module
>>  M_dhis-web-light=See Light module
>>  M_dhis-web-visualizer=See Data Visualizer module
>> @@ -145,6 +145,10 @@
>>  F_PROGRAMSTAGE_ADD=Add Program Stage
>>  F_PROGRAMSTAGE_UPDATE=Update Program Stage
>>  F_PROGRAMSTAGE_DELETE=Delete Program Stage
>> +F_PROGRAMSTAGE_SECTION_MANAGEMENT=Program Stage Section Management
>> +F_PROGRAMSTAGE_SECTION_ADD=Add Program Stage Section
>> +F_PROGRAMSTAGE_SECTION_UPDATE=Update Program Stage Section
>> +F_PROGRAMSTAGE_SECTION_DELETE=Delete Program Stage Section
>>  F_PATIENTIDENTIFIERTYPE_ADD=Add Person Identifier Type
>>  F_PATIENTIDENTIFIERTYPE_DELETE=Delete Person Identifier Type
>>  F_PATIENTIDENTIFIERTYPE_UPDATE=Update Person Identifier Type
>>
>> ------------------------------------------------------------------------------
>> Keep yourself connected to Go Parallel:
>> VERIFY Test and improve your parallel project with help from experts
>> and peers. http://goparallel.sourceforge.net
>> _______________________________________________
>> Translate-pootle mailing list
>> Translate-pootle@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/translate-pootle
>>
>
>
>
> --
> Dwayne
>
> *Translate*
> +27 12 460 1095
>
>
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. http://goparallel.sourceforge.net
_______________________________________________
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle

Reply via email to