Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 2012-12-21 in all areas

  1. Man, I usually stay away from controversial topics, but I decided to throw my opinion here. If it's illegal to use the swastika symbol in Germany because of the law (even if it is not the 45ยบ rotated swastika nazi symbol), let's make a German version without it. And keep the ancient symbol where it is not illegal. We're not guilty for those offended people who don't know ancient history. If people says that this Hindu symbol should be banned because it reminds Nazis killed a lot of people, they should also agree to ban the "church" cross because the church killed a lot of innocent people in the inquisition. I'm against any kind of behavior that involves harming another human being, but I'm also against ignorance.
    1 point
  2. Let's keep pushing the ball. I had another look at your data files and noticed some other formats you use: JSON and javascript embedded in xml. I already noticed your json files some days ago and json2po, converter from translate-toolkit[1], looks like it suits the job. Use the filter option to pick the leaves you want to extract, e.g.: json2po --filter=History,Description -o hele.pot hele.json This only works with current git master[2] of translate-toolkit as i had to patch it and it got already merged upstream. You can only filter for key-names and not their position in the tree, but i guess that's not a problem for you. Javascript seems to be a bit trickier. The easiest solution i found: Extract the javascript parts with XSLT and let xgettext do the rest. xgettext doesn't support javascript (yet, there's an unmerged patch for it[3]), but you can get away with Python or Perl set as language. You have to mark strings with some kind of function like _(), otherwise it's not extractable (just how you would do in C++). Best you link the gettext function to it as well (don't know how you call C++ from js). xml sel -T -t -v '//action' -n mainmenu.xml |\ xgettext --language=perl -k_ -o js.pot - This will extract all _("strings") from javascript in an action-tag. You need xmlstarlet[4] for the XSLT part. This has some limitations, e.g. you can't use string concatenations like this one: _("Open "+url+"\n in default web browser.") The string needs to be constant. Format strings seem to be the alternative which can be easily added[5]. The translator can then move the special characters of the format string where they need to be in the translated string (that's why it's a bad idea to break it up in multiple strings). As you can see it gets complex quite easily. Still, it shouldn't be too hard to add it to your build system (i'm not familiar with premake, i might be wrong). [1] http://docs.translat...lkit/en/latest/ [2] https://github.com/translate/translate [3] http://lists.gnu.org...2/msg00012.html [4] http://xmlstar.sourceforge.net/ [5] http://stackoverflow...f-string-format
    1 point
  3. And the statue of Poseidon the Magnificent ruler of the ocean [i know overdone render but I love Bloom and Lens Distortion]
    1 point
  4. Hey guys. Managed to pullout my dusty blender on a free saturday: Need to create a specific texture for the building with the many windows. and there will be a small poseidon statue ontop.
    1 point
  5. 0 A.D. became more pressing for me.
    1 point
×
×
  • Create New...