Hi everybody,
some time ago while translating the template I noticed that many items appear twice, triple etc. They then only differ in some few characters like &.
For translators it would be quite annoying to translate an item several times – just because one additional character is different. By the way if 2 translators translate two items that only differ in fe. & they probably translate it differently - translation consistency would be a problem here.
So I thought about a way to improve this:
Let’s take an example:
“Description” appears three times: "Description", "Description:" and "description".
In a further discussion on this forum we already decided that these 3 items should persist in the template as in some Asian countries they would be of different meaning (if I remember well, it actually was a comment from ThiasG).
So I would like to create a second template that contains "Description" only once. This then would be translated by human translators. Afterwards a script would generate automatically the other 2 items ("Description:" and "description").
As a first step I’ve been analyzing the template for double, triple etc. items:
You can find the files in bazaar.launchpad.net/jomammele/ ... e-results/ or create them with “nant generateGuidedTranslations” (after merging my branch into trunk).
The most interesting file would probably be bazaar.launchpad.net/jomammele/ ... oubles.txt
The above example:
DESCRIPTION
--> 3 derivates
"Description"
csharp\ICT\Common\Controls\lstTask.cs:86 (first of several occurrences)
"Description:"
csharp\ICT\Petra\Client\CommonDialogs\CreateExtract.cs:58 (first of several occurrences)
"description"
csharp\ICT\Petra\Client\MFinance\Gui\Common\BankStatementImport.ManualCode.cs:112 (first of several occurrences)
Another (extreme) example:
AMOUNT
--> 6 derivates
"&Amount:"
csharp\ICT\Petra\Client\MFinance\Gui\AP\APEditDocument-generated.cs:83 (first of several occurrences)
"A&mount:"
csharp\ICT\Petra\Client\MFinance\Gui\AP\APEditDocument-generated.cs:92 (first of several occurrences)
"A&mount"
csharp\ICT\Petra\Client\MFinance\Gui\AP\APEditDocument-generated.cs:908
"Amount:"
csharp\ICT\Petra\Client\MFinance\Gui\AP\APPayment-generated.cs:71 (first of several occurrences)
"Amount"
csharp\ICT\Petra\Client\MFinance\Gui\Common\BankStatementImport.ManualCode.cs:130
" Amount:"
csharp\ICT\Petra\Client\MFinance\logic\SetupAdminGrants.cs:102
Obviously on working with the templates we should avoid loosing translations that have already been made in the past. ;-)
What do you think?
(I’m aware that this currently doesn’t have any priority for openpetra. As I had been working on this already before starting my other current projects I wanted to finish this first.)
So far,
Joachim