forked from Razor-qt/razor-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:Razor-qt/razor-qt
- Loading branch information
Showing
15 changed files
with
333 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!DOCTYPE TS> | ||
<TS version="2.0" language="ru_RU"> | ||
<context> | ||
<name>XdgMenuReader</name> | ||
<message> | ||
<location filename="../xdgmenureader.cpp" line="73"/> | ||
<source>Menu file not defined.</source> | ||
<translation>Не задан файл меню.</translation> | ||
</message> | ||
<message> | ||
<location filename="../xdgmenureader.cpp" line="90"/> | ||
<source>%1 not loading: %2</source> | ||
<translation>%1 не загружен: %2</translation> | ||
</message> | ||
<message> | ||
<location filename="../xdgmenureader.cpp" line="101"/> | ||
<source>Parse error at line %1, column %2: | ||
%3</source> | ||
<translation>Ошибка разбора, сторка %1, столбец %2: | ||
%3</translation> | ||
</message> | ||
</context> | ||
</TS> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
PROJECT=qtxdg | ||
NO_OBSOLETE="-noobsolete" | ||
|
||
if [ "$1" = "" ]; then | ||
TS_FILE=${PROJECT}_`echo $LANG | awk -F"." '{print($1)}'`.ts | ||
else | ||
TS_FILE=$1 | ||
fi | ||
|
||
|
||
lupdate $NO_OBSOLETE -recursive .. -ts $TS_FILE && linguist $TS_FILE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef LIBTRANSLATE_H | ||
#define LIBTRANSLATE_H | ||
|
||
#include <QtCore/QTranslator> | ||
#include <QtCore/QCoreApplication> | ||
#include <QtCore/QLocale> | ||
|
||
inline void libTranslate(const QString &name) | ||
{ | ||
static bool alreadyLoaded = false; | ||
|
||
if (alreadyLoaded) | ||
return; | ||
|
||
QString locale = QLocale::system().name(); | ||
QTranslator *translator = new QTranslator(); | ||
translator->load(QString("%1/%2_%3.qm").arg(TRANSLATIONS_DIR, name, locale)); | ||
|
||
QCoreApplication::installTranslator(translator); | ||
alreadyLoaded = true; | ||
} | ||
|
||
|
||
#endif // LIBTRANSLATE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.