Comments (6)
Well FoFiX used gettext on windows and osx so i guess it will work? I'll look into this in a bit.
Translations are one of the things i really do want to get correct early on, along with proper unicode text rendering for UIs.
Text should definitely be stored as UTF-8 though that much i've decided :P
from openrhythm.
Utf-8 is life, yeah ^^ and seeing the awful text rendering issues (cant set fofix in french)... Yeah. Cant even unverstand how FoFiX has this kind of bugs...
from openrhythm.
Pushed Gettext support in 19f44ad.
from openrhythm.
Just so you know (if you don't already), all strings should be used like
# File header :
#include <libintl.h>
#define _(STRING) gettext(STRING)
_("the string to be translated")
# Smth like
m_logger->info(_("Loading MIDI"));
from openrhythm.
The initialization code is :
/* Setting the i18n environment */
setlocale (LC_ALL, "");
bindtextdomain ("openrhythm", LOCALE_DIR);
textdomain ("openrhythm");
For now (not commited nor pushed) I just pasted this in the main(), but I'll have to find a better place for this. Maybe directly in a preferences/ directory, containing the preferences changes+reading+saving utility code.
from openrhythm.
Ah yeah, and the bad news is that the POTFILES.in file has to contain the files list. Could not do that in CMake, and that's a shame.
from openrhythm.
Related Issues (20)
- Configuration and Config Files. HOT 13
- Finish the VFS and integrate it with the codebase. HOT 4
- Complete the audio system. HOT 13
- How to save scores HOT 12
- Change MIDI for another format HOT 1
- Doc HOT 7
- Perhaps look into unit testing? HOT 6
- Audio compilation errors with Visual Studio. HOT 4
- Error while compiling master HOT 2
- Optional PNG++ ? HOT 8
- Possible memory leak in audiotests.cpp HOT 3
- gettext has issues on windows, find an alternative. HOT 7
- Configuration systems HOT 3
- Rust HOT 2
- Go through and make a documentation pass on everything.
- OSX Build HOT 7
- Link SoundTouch-C on Mac HOT 1
- Can't run without notes.mid and song.ogg HOT 1
- Status of project HOT 1
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 openrhythm.