Giter Site home page Giter Site logo

Comments (6)

amoulart avatar amoulart commented on July 21, 2024 1

Thank you Georger, it works like a charm.
I can do the translation work but I'm not used to the tools.
I see I can edit the po file with notepad++ can you confirm I should use the compile.bat/sh files to generate the mo file?

from treesheets.

amoulart avatar amoulart commented on July 21, 2024 1

Thank you for your help,
I've done a release of the ts file for French and also an update of the tutorial in French an launched a pull request

from treesheets.

georgeraraujo avatar georgeraraujo commented on July 21, 2024

I took a look at the translation file for French and the translation for "Insert New Grid" really is missing the "INS" keyboard shortcut. I added it in case you want a quick fix:

  1. Download fr_FR.zip and put it in your %LOCALAPPDATA%\Programs\TreeSheets\translations\fr_FR folder.
  2. Copy ts.mo and ts.po to a backup folder of your choice.
  3. Uncompress the fr_FR.zip file you downloaded, and confirm that you want to overwrite ts.mo and ts.po (which you made backup copies of in the previous step).
  4. Start TreeSheets. The menu entry should now include the INS keyboard shortcut.

I noticed there are several untranslated strings in the French translation. Consider translating them and submitting a pull request.

from treesheets.

georgeraraujo avatar georgeraraujo commented on July 21, 2024

Thank you Georger, it works like a charm. I can do the translation work but I'm not used to the tools. I see I can edit the po file with notepad++ can you confirm I should use the compile.bat/sh files to generate the mo file?

While you definitely can edit ts.mo with Notepad++ and then use compile.bat to generate ts.mo, that would require you to obtain the GNU gettext utilities, put them exactly in the folder where compile.bat expects them to be, and finally invoke compile.bat by hand. Since you're using Windows, I recommend that you use Poedit instead, which will allow you to edit and compile with a single tool. I use the free version for the Brazilian Portuguese translation, and haven't felt the need to upgrade to the paid Pro version.

from treesheets.

amoulart avatar amoulart commented on July 21, 2024

Ok I've started the work but there is a lot to do and sometimes I'm not sure about what I'm modifying so it will take some work for verification on my side. I'll push it when I assume it is reliable.
It looks like not all HMI entries are appearing in the translation file. I can't find these ones:
image
Ok I see that the German translation items that I don't in the French one, so should I do a xgettext from source? (I have no idea yet on how to do that, I'm just getting info from google on that topic...)
image

from treesheets.

georgeraraujo avatar georgeraraujo commented on July 21, 2024

It looks like not all HMI entries are appearing in the translation file.

It looks like TS\translations\fr_FR\ts.po is out of date with TS\translations\ts.pot. In Poedit, Click Catalogue > Mettre à jour depuis un fichier POT..., and choose ts.pot in the translations folder. It will merge the latest strings from ts.pot into ts.po, and make them available for you to translate.

from treesheets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.