Giter VIP home page Giter VIP logo

Comments (4)

zlatinb avatar zlatinb commented on May 30, 2024 1

Hi, take a look at the 3rd option provided here https://nsis.sourceforge.io/Creating_language_files_and_integrating_with_MUI

I2P outsources translating to Transifex which uses .po files. It's true that there are very few strings to translate, but the installer supports a ton of languages, so all in all we're talking about quite a few strings.

Also take a look at the head of "i2p.firefox" branch in monotone - it prompts the user for the language and translates all default strings (like "Next", "Cancel", etc.).

from firefox.profile.i2p.

eyedeekay avatar eyedeekay commented on May 30, 2024

Linux should be pretty easy. It's just shell scripts and .desktop files. Where it's possible to simply replace labels, .desktop files have been altered to reflect different names(I2PBrowser instead of firefox) but this process probably wasn't 100% accurate and definitely isn't complete.

from firefox.profile.i2p.

eyedeekay avatar eyedeekay commented on May 30, 2024

The web site is also pretty easy. Just create a directory ./translations/cc-CC/ containing the translated versions of ./*.md. Alter "make page" target and dependencies to honor an environment variable "locale"(Remember for CONTRIBUTING.md) which contains the path to the translation.

Split HEADER.md into HEADER.md and INTRO.md, add language links(LANG.md) below HEADER.md and above INTRO.md.

from firefox.profile.i2p.

eyedeekay avatar eyedeekay commented on May 30, 2024

The easiest, dumbest way to do it on Windows is to have a folder(nsis_strings) which contains translated strings for the installer, with a different version for every locale.

  • Pros:
  1. Far and away the easiest conceptually.
  2. Requires no probing for the user's language because they
    download the bundle for their language already. Less probing is always good, and this might be the only way.
  • Cons:
  1. Requires building dozens of different installers(Hopefully :)! As many as possible!) and directing people to the one appropriate for them effectively.
  2. Requires translations to be done in NSIS format instead of something less "self-hating Makefile." But it's only like, seven lines so does anybody even care?

from firefox.profile.i2p.

Related Issues (15)

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.