Comments (6)
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.
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.
Great to see, you implemented localization support. Would you please provide the translation template file (pot), too?
from gnome-extension-quicktoggler.
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.
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.
I see. I will create one in future commits.
from gnome-extension-quicktoggler.
Related Issues (12)
- "wrong" detection of service status HOT 3
- react on returncode instead of "space" on toggler HOT 2
- Compatibility metadata outdated HOT 2
- encourage people to share their menu entries HOT 2
- GNOME 3.36 compatibility HOT 1
- Not available on Gnome 3.20 HOT 4
- Updating the extension does not keep settings HOT 1
- Reload button n Icons ! HOT 7
- Support for systemd user services HOT 3
- Option to hide "filter" field HOT 1
- Upate on Gnome-Extensions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnome-extension-quicktoggler.