Giter Site home page Giter Site logo

Comments (6)

Shihira avatar Shihira commented on July 4, 2024

Thanks for your support.

Initially I meant to skip the step of creating gettext translation because I thought this extension is just for my personal use. Now that it did gathers some users, which quite surprises me actually, maybe it's time to do some translation.

Nearly(or literally?) all the text that requires translation is in the preference window. The extension popup-menu itself simply has no text except for the filter place-holder text.

I will try to add translation to preference window, while it is still hard to test because I don't have the language environment of another. Changing language of gnome is a headache.

from gnome-extension-quicktoggler.

jonnius avatar jonnius commented on July 4, 2024

I am happy to hear that you are going to implement localization support. If you might have problems with the commands from the official tutorial, you can use the function initTranslations() from your convenience.js. Have a look at this example.

from gnome-extension-quicktoggler.

jonnius avatar jonnius commented on July 4, 2024

Great to see, you implemented localization support. Would you please provide the translation template file (pot), too?

from gnome-extension-quicktoggler.

Shihira avatar Shihira commented on July 4, 2024

@jonnius

I am not sure if this is what you need: https://github.com/Shihira/gnome-extension-quicktoggler/blob/master/quicktoggler%40shihira.github.com/locale/zh_CN/LC_MESSAGES/gnome-extension-quicktoggler.po though it is a filled po instead of a template (and a little bit out-dated because I forgot to add translation after adding some new UI elements). I did not attempt to translate any other places besides the preference window.

Or if that doesn't satisfy, can it be simply generate by executing commands as follows?

cd [email protected]
mkdir -p locale/${LANG/.*/}/LC_MESSAGES
xgettext prefs.glade -o locale/${LANG/.*/}/LC_MESSAGES/gnome-extension-quicktoggler.po

Thank you for you support. And your PR will be welcome.

from gnome-extension-quicktoggler.

jonnius avatar jonnius commented on July 4, 2024

The idea of the template (an empty po, called pot) is that you keep it up-to-date and translators may use it start or update a translation. I can create it along with the german translation.

from gnome-extension-quicktoggler.

Shihira avatar Shihira commented on July 4, 2024

@jonnius

I see. I will create one in future commits.

from gnome-extension-quicktoggler.

Related Issues (12)

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.