Jump to content
The Dark Mod Forums

Geep

Contributor
  • Posts

    1367
  • Joined

  • Last visited

  • Days Won

    67

Geep last won the day on November 8

Geep had the most liked content!

Reputation

1108 Deity

5 Followers

Profile Information

  • Location
    Mid-Atlantic, US

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Ah, I just decided to go with the Pro+ plan anyway. About 42 US dollars annual subscription. I'll revert the \u markups.
  2. I guess, for unicode po files, a \x20 would always be interpreted as \x0020... because it's within 7-bit ASCII if no other reason. Let me explain a bit more. I'd like to use the poedit QA features - rather than turn them off globally - because the warnings are generally helpful. But some percent do need to be ignored. For example, under settings/controls/inventory, a previous translator did this: [English] Next Inv. Item [German] Nächstes im Inv. POEdit will give a warning about the English and German disagreeing on the trailing period. This warning should be ignored. So I suppressed it with [German] Nächstes im Inv\u002e as seen in the POEdit UI (or ...\\u002e in the .po file). There are typically 5-10 suppressable warnings. If I don't suppress as many as I can, it gets harder to spot newly occurring warnings. I always include a translator's note explaining the odd use of notation. Admittedly, it's a ugly hack (whether \u or \x). I was doing it so that future translators would not feel they had to use the paid version of POEdit. But if the hack offends too much, I will drop it and just use the paid "Pro" (basic) version and its "Ignore" feature.
  3. I mentioned I was using \uxxx to help manage poedit's warning messages. For context, here's a draft section (from a planned TDM wiki page) about that: Dealing with POEdit-Reported Errors and Warnings An error is shown with a red icon, a warning with yellow. These are detected by POEdit's QA system. For a particular string, typical resolutions are: Correct the translation. Almost always what should be done for an error. Leave as is. It is recommended that you explain why by editing the "Translator Notes". If you have the paid version of POEdit, you can also use the "Ignore" link (with its limitations). Less common resolutions are: Use a trick correction. Examples: To suppress a leading-space warning, use "\u0020" instead of space. To suppress a trailing-period warning, use "\u002e" instead of ".". If the English is the problem, plan to correct the english.pot file, and propagate the change to all translations. POEdit's "Ignore" flag is stored in the app's local data, as a hash of the msgid, msgstr, and error/warning message. By design, the flag is not stored in the .po file, for gettext compatibility. The app's local data can be transferred to another machine with identical paths, but that is generally impractical. Instead, a new translator (with a paid POEdit app) can redo "Ignore" links locally, using the guidance from the recommended "Translator Notes" by a previous translator. (For large translation projects, there are other solutions: POEdit integrates with cloud-sync Crowdin and Localazy services.)
  4. Could it be added? Otherwise, I'll have to back out a bunch of .po tweaks. BTW, let me know when the 2.15 dev distribution includes the ability to read po/pot files, and distributes those files. Then I'll be able to inspect in-game the updates I've been providing.
  5. @stgatilov, for the .po files, the gettext parser allows you to enter unicode characters with the \uxxxx notation, where x is hex. Within a string, an example would be "Period = \\u002e". Does TDM's reader/parser support that? I really need that support, because I'm using it to help manage poedit's warning messages.
  6. Question for audio experts: Under Settings/Audio, the first row is described under various languages (but with text actually in English) as: "OpenAL EFX" "EAX 4.0 HD" The first form is used by English, and for consistency, I'm thinking to use it for the other languages, unless you guys think otherwise.
  7. Good thing to have for FMs that haven't already been translated. (I once started a similar effort to convert the Perl extraction script to C++. Abandoned as too much work, tho partial code was successfully recycled to help my other utility projects.)
  8. At this point, I will turn to edit the .po files (and sometimes english.pot), under the trunk's SVN checkin/checkout control. Summary lines about edit sessions, besides in the SVN revision log, I'll post within public notes at: 0006736: Strings framework: consume all.lang directly in UTF-8 Given our new policy, I will not be back-porting these pot/po changes to all.lang or *.lang. So the latter will become stale. The revised all.lang (and all_lang_to_po) have served a good purpose as a one-shot stepping stone to structured .pot/.po files. (For FMs, such a transition is yet to come, and might be helped by all_lang_to_po.) The initial edits will focus on removing errors/warnings detected by poedit. Then follows the bulk of the work, for missing translations.
  9. I'll just use that in any future pot/po updates OK then. For core, we can move away from all.lang (and use of all_lang_to_po) to editing .pot directly. I believe poedit has claimed features for updating POs after changing POT. Whether they are adequate by themselves, or need additional management tools, is to be determined. Before all.lang abandonment, there's some preamble comments that I may need to review & perhaps partially migrate to a read.me or wiki page.
  10. The newest .pot & .po files in my .zip available through the new wiki page do address items (1) & (2), as well as spacing between blocks in the .pot file. You do need to change your code to turn #empty back to "". For (3), I still wish you'd customize your code to provide what the i18n .map files traditionally did. Do you have a strong preference for the chunked-style or long-line style? I'm torn myself. Long-line is closer to the traditional TDM *.lang style. Chunked is the traditional gettext style, and so most-likely to be broadly compatible with 3rd party po/pot editors & other gettext tools. Poedit can handle either. For core, I'm OK with abandoning the non-English sections of all.lang. Simplicity would call for abandoning the [English] section as well, and just treating english.pot as the "source" going forward. However, there is a case for keeping the all.lang [English] section alone as the "source", from which english.pot is generated... mainly to discourage too-casual/too-frequent changes to english.pot and the synchronization headache with .po changes. There is a block flag that can be set (gettext's "fuzzy", seen as "needs more work" toggle in poedit). I didn't think I could reliable determine the initial value of this, so left it unset by all_lang_to_po's generation of .pot and .po . But something to look into further. In your numbered list, around 3 & 4, there is more work on my end across all the po files, to understand and correct fatal problems (mismatched printf specifiers) and non-fatal warnings (punctuation). And then there are all the missing strings to use AI to fill in. I'm away again, but expect to start working on these next week. We will have to figure out how you & I can work together on editing files without stepping on each others work. Another thing that I would add to future issues, perhaps the most helpful of all, would be the ability to specify the aspect ratio applied to a particular string in a particular font for a particular language.
  11. @stgatilov, I just added a new wiki page: https://wiki.thedarkmod.com/index.php?title=Converting_Translations_with_all_lang_to_po from which you can download (at the bottom) a zip file that contains - source code & Windows executable for program "all_lang_to_po" v 1.00, the first public release of this. current input/output files The wiki page describes both the program, the required input markup for all.lang, and the results. I'm sorry it's not as tightly written as would be ideal.
  12. As a workaround, open the .pot file in poedit, then resave it. It will add the spacing. I see all_lang_to_po does generate the .po with spacing, but not the .pot. I'll update the code to make that better.
  13. Hmmm, po also uses leading # for comments generally, so the use of # isn't going to scream "TDM-specific". That said, I'm ok with #empty. For the group comments where I was using msgctxt "//", I'd like to keep it short. How about "##"?
  14. @stgatilov, I'm traveling and away from my dev machine. And involved with family stuff. Be back Thursday. As for the empty string issue, we could adopt a convention msgid __empty__ is treated as"" by TDM engine
  15. I do intend to post all_lang_to_po program and its source, probably in a week after some travel. Looking forward, if the TDM engine can successfully suck in .po (or even .mo) files directly, then, for non-English, the .po can be used as ground truth (that is, where further edits occur), and the all.lang [non-English] sections abandoned. The jury might be out as to whether to continue to support all.lang[English], or abandon that as well in favor of the .pot file as ground truth. In any case, the all_lang_to_po program could be refocused to help existing translated FMs make the transition to .po as well (after 2.15), if desired.
×
×
  • Create New...