- Posts: 4403
Internationalization
- PhracturedBlue
-
Topic Author
- Offline
Less
More
27 Aug 2012 19:46 #1248
by PhracturedBlue
I did find one bug:
I forgot to switch back to English when writing the ini, so it would be written in your language, but read in English which caused issues. This might explain why it failed only on startup, since it only reads tx settings on reboot.
Replied by PhracturedBlue on topic Internationalization
Can you try pulling the latest code.FDR wrote: No it works!
Strange!
Everything seems equal: the line feeds, the encoding...
Mine is larger, but it did the same when it was only a few rows too.
I did find one bug:
I forgot to switch back to English when writing the ini, so it would be written in your language, but read in English which caused issues. This might explain why it failed only on startup, since it only reads tx settings on reboot.
- FDR
-
- Offline
- PhracturedBlue
-
Topic Author
- Offline
Less
More
- Posts: 4403
27 Aug 2012 20:01 #1250
by PhracturedBlue
And check the tx.ini and model.ini to see if they are in English and/or look corrupt. You could also just send them to me and I could try them in the emulator
Replied by PhracturedBlue on topic Internationalization
Can you enter USB mode when it is in a broken state (after switching languages and powering down..hold 'Ent')FDR wrote: No, it does the same...
And check the tx.ini and model.ini to see if they are in English and/or look corrupt. You could also just send them to me and I could try them in the emulator
- FDR
-
- Offline
27 Aug 2012 20:26 #1251
by FDR
Replied by FDR on topic Internationalization
They look fine!
BTW after clearing the language row from the tx.ini it works again in english...
BTW after clearing the language row from the tx.ini it works again in english...
- PhracturedBlue
-
Topic Author
- Offline
Less
More
- Posts: 4403
27 Aug 2012 21:04 #1252
by PhracturedBlue
Replied by PhracturedBlue on topic Internationalization
I'll check it tonight and see if I can figure out what is up.FDR wrote: They look fine!
BTW after clearing the language row from the tx.ini it works again in english...
- PhracturedBlue
-
Topic Author
- Offline
Less
More
- Posts: 4403
28 Aug 2012 03:19 #1253
by PhracturedBlue
Replied by PhracturedBlue on topic Internationalization
The problem was a buffer overflow. I don't know why valgrind didn't catch it.
Anyhow, it is fixed now, and seems to work.
Anyhow, it is fixed now, and seems to work.
- FDR
-
- Offline
28 Aug 2012 04:40 #1254
by FDR
Replied by FDR on topic Internationalization
Yep, it works now...
Thanks!
Thanks!
- wuselfuzz
-
- Offline
Less
More
- Posts: 83
28 Aug 2012 07:13 - 28 Aug 2012 07:15 #1255
by wuselfuzz
Oops, true, I messed it up, sorry.
/edit: I really wouldn't run symbols for the mixer etc through the translate function, so model files are language independent.
Replied by wuselfuzz on topic Internationalization
PhracturedBlue wrote: EDIT: the German file (even the one marked utf8) wasn't in proper UTF8 format. I converted it and now all the characters seem to show up ok. It'll still need some adjustment to be usable though.
Oops, true, I messed it up, sorry.
/edit: I really wouldn't run symbols for the mixer etc through the translate function, so model files are language independent.
Last edit: 28 Aug 2012 07:15 by wuselfuzz.
- PhracturedBlue
-
Topic Author
- Offline
Less
More
- Posts: 4403
28 Aug 2012 12:42 - 28 Aug 2012 12:42 #1256
by PhracturedBlue
Replied by PhracturedBlue on topic Internationalization
Model files are language independent. The strings in the model file (and tx.ini) are always in English regardless of your language.wuselfuzz wrote: /edit: I really wouldn't run symbols for the mixer etc through the translate function, so model files are language independent.
Last edit: 28 Aug 2012 12:42 by PhracturedBlue.
- FDR
-
- Offline
28 Aug 2012 19:51 #1266
by FDR
Replied by FDR on topic Internationalization
Corrected a typo in the hungarian language file.
Pushed...
Pushed...
- FDR
-
- Offline
29 Aug 2012 08:05 #1281
by FDR
Replied by FDR on topic Internationalization
Wait with pulling, I've found some more. I will correct them at home...FDR wrote: Corrected a typo in the hungarian language file.
Pushed...
- FDR
-
- Offline
29 Aug 2012 18:30 #1290
by FDR
Replied by FDR on topic Internationalization
OK, it's done, I pushed...
- PhracturedBlue
-
Topic Author
- Offline
Less
More
- Posts: 4403
01 Sep 2012 23:11 - 02 Sep 2012 02:47 #1336
by PhracturedBlue
Replied by PhracturedBlue on topic Internationalization
I'm automating the extraction of the strings so it can be easily regenerated. Do you have any issue with me alphabetizing them in the output?
It will make it much easier to detect when new strings are added. (I'll alphabetize the existing language files too). Then we can use 'diff' to find new strings that need translating.
Edit: I've committed updated language files that are sorted.
Strings that were previously translated but are no longer used will be prefixed with '<:' and '<'. Strings that are new and have not yet been translated are prefixed with '>:'
You can run 'make language' at any time to extract the latest strings and updatethe existing language files as necessary. I think it will work on Windows too.
It will make it much easier to detect when new strings are added. (I'll alphabetize the existing language files too). Then we can use 'diff' to find new strings that need translating.
Edit: I've committed updated language files that are sorted.
Strings that were previously translated but are no longer used will be prefixed with '<:' and '<'. Strings that are new and have not yet been translated are prefixed with '>:'
You can run 'make language' at any time to extract the latest strings and updatethe existing language files as necessary. I think it will work on Windows too.
Last edit: 02 Sep 2012 02:47 by PhracturedBlue.
- FDR
-
- Offline
04 Sep 2012 16:26 #1359
by FDR
Replied by FDR on topic Internationalization
A (may be too late) question:
Is it necessary, that the language files are numbered instead of "lang.hu" or "lang.hu.txt" or "hu.txt"?
It makes harder to identify the language files.
I would prefer the named method for the model files too, but I understand, that they must exist, because the FS cannot create files, so they cannot be created or renamed on the fly...
But the language diretory (and for the matter the templates too) could be read as a whole directory, since they are read only.
Is it necessary, that the language files are numbered instead of "lang.hu" or "lang.hu.txt" or "hu.txt"?
It makes harder to identify the language files.
I would prefer the named method for the model files too, but I understand, that they must exist, because the FS cannot create files, so they cannot be created or renamed on the fly...
But the language diretory (and for the matter the templates too) could be read as a whole directory, since they are read only.
- PhracturedBlue
-
Topic Author
- Offline
Less
More
- Posts: 4403
04 Sep 2012 18:29 #1360
by PhracturedBlue
Replied by PhracturedBlue on topic Internationalization
there is no way to search for files in the code today (because of how I have petit_fat compiled) So yes, today it is necessary to use numbered files.
Someday I'll enable the full filesystem code support, but not before the 1st release.
Someday I'll enable the full filesystem code support, but not before the 1st release.
- FDR
-
- Offline
- FDR
-
- Offline
05 Sep 2012 13:57 #1362
by FDR
Replied by FDR on topic Internationalization
I saw that you've done it! 
(I think the german version should be named lang.de, but Wuselfuzz can tell for sure...)
Now there is nothing prohibits you to make the templates the same!

BTW, I pushed some changes to the lang.hu
(I think the german version should be named lang.de, but Wuselfuzz can tell for sure...)
Now there is nothing prohibits you to make the templates the same!
BTW, I pushed some changes to the lang.hu
- FDR
-
- Offline
06 Sep 2012 18:32 #1376
by FDR
Replied by FDR on topic Internationalization
Sorry, I still found typos in lang.hu 
Pushed...
Pushed...
- wuselfuzz
-
- Offline
Less
More
- Posts: 83
17 Sep 2012 20:40 - 17 Sep 2012 20:41 #1693
by wuselfuzz
Replied by wuselfuzz on topic Internationalization
Quick update to the german language file attached.
Last edit: 17 Sep 2012 20:41 by wuselfuzz.
Time to create page: 0.153 seconds
-
Home
-
Forum
-
Development
-
Development
- Internationalization