📄 readme
字号:
Adding a translation to GKrellM -------------------------------1) Extract the strings from the source--------------------------------------In the gkrellm top level directory, create the .po template (.pot): xgettext -k_ -kN_ src/*.c -o po/gkrellm.pot2) Update or create .po files-----------------------------If there are any existing translations, XX.po files, then merge them: cd po msgmerge XX.po gkrellm.pot > XX.po.new mv XX.po.new XX.poOr, if this is a new translation, copy the template: cd po cp gkrellm.pot XX.po3) Add translations-------------------Edit XX.po to add translations for new strings, fix broken translations,and touch up fuzzy translations.4) Make and install GKrellM with i18n enabled---------------------------------------------If make is run from this directory instead of the top level dir, you mustexplicitely enable i18n in all the below examples by adding enable_nls=1to the make command: make enable_nls=1And for the install step: make install enable_nls=1i18n will be automatically enabled when make is run from the top level dir.In either case, a make install will for each XX.po file create a XX.mo fileand copy it to: $LOCALEDIR/XX/LC_MESSAGES/gkrellm.moIf there is no LOCALEDIR environment variable, then the default installwill be to: /usr/share/locale/XX/LC_MESSAGES/gkrellm.moBut, if you want a different explicit install directory, do for example: make install LOCALEDIR=/usr/local/share/localeor (for bash) export LOCALEDIR=/usr/local/share/locale make installOther export lines: sh: export LOCALEDIR; LOCALEDIR=/usr/local/share/locale csh: setenv LOCALEDIR /usr/local/share/localeYou can also specify the textdomain package name. From bash: make install PACKAGE=gkrellm2============================================================================Using a translation-------------------A user must have localizations enabled for a translation to be used.To enable a localization, the LANG environment variable should be setvia the command line or the shell login startup files.For example, to see the French translation, a user should be able to:From bash: export LANG=fr_FRor from csh setenv LANG fr_FRIf fr_FR does not work, try fr_FR.ISO_8859-1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -