• This project
    • Loading...
  • Sign in

tome / tome-addon-dev · Merge Requests

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 1
  • Labels
  • Wiki
  • Forks
  • Network
Open
MR Merge Request !3 opened
2020-11-11 17:23:07 UTC by Otowa Kotori @otowakotori

WIP: Translation toolkit for ToME4

Prototype of builtin translation toolkit for ToME4. It is designed to replace the old i18n_tools native lua script interface.

How to use:

  • This addon will add "Translation Tool" menu in debug menu, in this menu
    • Change working locale will change your working locale
    • Create translation addon is used to create a template addon to test your translation project.
    • Extract text index must be executed before the two following operation, it will extract game text in your game file. You should rerun this operation whenever game code (excluding locale) changes.
    • Rearrange translation files will help you arrange translation file in your translation working folder, it will create empty translation files, as well as arrange, deduplicate and detect conflict translations in your files.
    • Check translation files just do the conflict detection work
    • Release translation as addon can be used to copy your translation file to an addon.
  • Working dir is {engine.homepath}/user-i18n/
  • Additional file to help rearrange translation files
    • _tdef_append.lua is used to mark text that does not appear in game as _t string but should be translated.
      • For example, northwest is a combination of "north" and "west" in game, but it may appear as an independent word in your language.
      • Also, magestaff that does not appear as _t. It's the key for key-value staff flavor defination in game, and we may not want to change this for compatibility.
      • This is still subject to interface changes, currently, you can get a up-to-date _tdef_append.lua in https://pastebin.com/tJS5SCt6
    • _t_append.lua can be used to add translations into your project. It can be also used for migration from the old framework.
    • _not_merged.lua is, strings that don't appear in current game, being evicted and stored here. Current work: Documents (Important!) More tests Additional features on request
Edited 2021-01-01 06:52:10 UTC
Check out branch Download as
  • Email Patches
  • Plain Diff
Request to merge otowakotori:i18n into master
×

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch https://git.net-core.org/otowakotori/tome-addon-dev.git i18n
git checkout -b otowakotori/tome-addon-dev-i18n FETCH_HEAD

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git checkout master
git merge --no-ff otowakotori/tome-addon-dev-i18n

Step 4. Push the result of the merge to GitLab

git push origin master

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines

CI build passed for eb5a7d50. View details
CI build skipped for eb5a7d50. View details
CI build canceled for eb5a7d50. View details
CI build failed for eb5a7d50. View details
CI build running for eb5a7d50. View details
CI build pending for eb5a7d50. View details
Checking ability to merge automatically…
  • Discussion 0
  • Commits 17
  • Builds 0
  • Changes 21
  • Otowa Kotori
    @otowakotori commented 2020-11-11 17:23:46 UTC

    Added 1 commit:

    • 09029267 - a few bugfixes
  • Otowa Kotori
    @otowakotori commented 2020-11-12 11:00:37 UTC

    Added 1 commit:

    • 7bbda738 - Fix teaac and team loading, as well as small bugfixes
  • Otowa Kotori
    @otowakotori commented 2020-11-12 13:15:57 UTC

    Added 1 commit:

    • a2d68b80 - Support detection for new translation texts
  • Otowa Kotori
    @otowakotori commented 2020-11-13 05:18:55 UTC

    Added 1 commit:

    • 7d5edf00 - French Translation
  • Otowa Kotori
    @otowakotori commented 2020-11-14 10:35:17 UTC

    Added 1 commit:

    • 206f0c4c - Fix writing error
  • Otowa Kotori
    @otowakotori commented 2020-11-28 06:19:10 UTC

    Added 2 commits:

    • 462757ec - validator for tformat strings
    • 7f8d6357 - respect format string in log
  • Otowa Kotori
    @otowakotori commented 2020-11-30 15:20:22 UTC

    Added 1 commit:

    • 05941e1b - change some tag names
  • Otowa Kotori
    @otowakotori commented 2020-12-01 09:18:10 UTC

    Added 1 commit:

    • 88860d1a - being able to choose parts
  • Otowa Kotori
    @otowakotori commented 2020-12-01 09:53:44 UTC

    Added 1 commit:

    • bc176647 - change to ListColumns
  • Otowa Kotori
    @otowakotori commented 2020-12-01 13:07:38 UTC

    Added 1 commit:

    • abf5fed1 - Chinese updates
  • Otowa Kotori
    @otowakotori commented 2021-01-01 06:11:26 UTC

    Added 1 commit:

    • 9e6322aa - automatically load current locale data if it exist as default value
  • Otowa Kotori
    @otowakotori commented 2021-01-01 06:52:10 UTC

    Added 1 commit:

    • eb5a7d50 - don't pollute
  • Please register or login to post a comment
3 of 3
Prev Next
Assignee
No assignee
Assign to
No
Milestone
None
Assign milestone
1
1 participant
Reference: tome/tome-addon-dev!3