mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
9034e05f4e
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
289 lines
6.5 KiB
Diff
289 lines
6.5 KiB
Diff
# Author: Damyan Ivanov <dmn@debian.org>
|
|
# Description: declare inline strings as constants
|
|
# Modern GCC (rightfully) complain otherwise
|
|
--- a/src/language_tools.h
|
|
+++ b/src/language_tools.h
|
|
@@ -27,19 +27,19 @@
|
|
#define LT_(x) true == lang ? Glib::convert(x[1], "UTF-8", "CP1251"): x[0]
|
|
|
|
|
|
-static char *HELP_MESSAGE[] = {
|
|
+static const char *HELP_MESSAGE[] = {
|
|
"Type a word (bulgarian or english) in entry box above",
|
|
"Íàïèøåòå äóìà (íà áúëãàðñêè èëè àíãëèéñêè) â ïîëåòî ïî-ãîðå"
|
|
};
|
|
|
|
|
|
-static char *WELLCOME_MESSAGE[] = {
|
|
+static const char *WELLCOME_MESSAGE[] = {
|
|
"Wellcome to GTK BG Office!",
|
|
"Äîáðå äîøëè â GTK ÁÃ Îôèñ. Ïðèÿòíî èçïîëçâàíå!"
|
|
};
|
|
|
|
|
|
-static char *ABOUT_MESSAGE[] = {
|
|
+static const char *ABOUT_MESSAGE[] = {
|
|
"GTK BG Office assistant - version 1.4 \n"
|
|
"Official webpage - http://gbgoffice.info\n\n"
|
|
"(C) 2004-2006 Miroslav Yordanov <mironcho@linux-bg.org>\n"
|
|
@@ -52,7 +52,7 @@ static char *ABOUT_MESSAGE[] = {
|
|
};
|
|
|
|
|
|
-static char *CONFIG_ERROR[] = {
|
|
+static const char *CONFIG_ERROR[] = {
|
|
"The configuration could not be initialized\n"
|
|
"This is fatal error and gbgoffice now will exit!",
|
|
|
|
@@ -61,7 +61,7 @@ static char *CONFIG_ERROR[] = {
|
|
};
|
|
|
|
|
|
-static char *ERROR_INIT_TRAYICON[] = {
|
|
+static const char *ERROR_INIT_TRAYICON[] = {
|
|
"Error initializing trayicon module.\n"
|
|
"This is fatal error and gbgoffice now will exit!",
|
|
|
|
@@ -70,7 +70,7 @@ static char *ERROR_INIT_TRAYICON[] = {
|
|
};
|
|
|
|
|
|
-static char *DATA_MISSING[] = {
|
|
+static const char *DATA_MISSING[] = {
|
|
"Dicionary files are missing.\n"
|
|
"Please check that you have installed them\n"
|
|
"and if they are missing, visit\n"
|
|
@@ -86,7 +86,7 @@ static char *DATA_MISSING[] = {
|
|
};
|
|
|
|
|
|
-static char *DATA_MISSING_FEDORA[] = {
|
|
+static const char *DATA_MISSING_FEDORA[] = {
|
|
"Dicionary files are missing.\n"
|
|
"Please check that you have installed them\n"
|
|
"and if they are missing, please use the supplied \n"
|
|
@@ -105,190 +105,190 @@ static char *DATA_MISSING_FEDORA[] = {
|
|
|
|
|
|
|
|
-static char *GUI_CURRENT_DICT[] = {
|
|
+static const char *GUI_CURRENT_DICT[] = {
|
|
"Current dictionary - ",
|
|
"Òåêóù ðå÷íèê - "
|
|
};
|
|
|
|
|
|
-static char *GUI_NEXT_WORDS[] = {
|
|
+static const char *GUI_NEXT_WORDS[] = {
|
|
"next words",
|
|
"ñëåäâàùè äóìè"
|
|
};
|
|
|
|
|
|
-static char *GUI_MENU_FILE[] = {
|
|
+static const char *GUI_MENU_FILE[] = {
|
|
"_File",
|
|
"_Ôàéë"
|
|
};
|
|
|
|
|
|
-static char *GUI_MENU_EDIT[] = {
|
|
+static const char *GUI_MENU_EDIT[] = {
|
|
"_Edit",
|
|
"Ð_åäàêòèðàíå"
|
|
};
|
|
|
|
|
|
-static char *GUI_MENU_DICTS[] = {
|
|
+static const char *GUI_MENU_DICTS[] = {
|
|
"_Dictionaries",
|
|
"_Ðå÷íèöè"
|
|
};
|
|
|
|
|
|
-static char *GUI_MENU_SETTINGS[] = {
|
|
+static const char *GUI_MENU_SETTINGS[] = {
|
|
"_Settings",
|
|
"_Íàñòðîéêè"
|
|
};
|
|
|
|
|
|
-static char *GUI_MENU_HELP[] = {
|
|
+static const char *GUI_MENU_HELP[] = {
|
|
"_Help",
|
|
"_Ïîìîù"
|
|
};
|
|
|
|
|
|
-static char *GUI_VIEW_HISTORY[] = {
|
|
+static const char *GUI_VIEW_HISTORY[] = {
|
|
"View history",
|
|
"Ïîêàçâà èñòîðèÿòà"
|
|
};
|
|
|
|
|
|
-static char *GUI_PREFS_NUM_WORDS[] = {
|
|
+static const char *GUI_PREFS_NUM_WORDS[] = {
|
|
" Number of words in list",
|
|
" Áðîé äóìè â ñïèñúêà"
|
|
};
|
|
|
|
|
|
-static char *GUI_PREFS_USE_CLIPBOARD[] = {
|
|
+static const char *GUI_PREFS_USE_CLIPBOARD[] = {
|
|
" Watch clipboard for new words",
|
|
" Íàáëþäàâàé êëèïáîðäà çà íîâè äóìè"
|
|
};
|
|
|
|
|
|
-static char *GUI_PREFS_TAB_GENERAL[] = {
|
|
+static const char *GUI_PREFS_TAB_GENERAL[] = {
|
|
"General",
|
|
"Îñíîâíè"
|
|
};
|
|
|
|
|
|
-static char *GUI_PREFS_TAB_TRAY[] = {
|
|
+static const char *GUI_PREFS_TAB_TRAY[] = {
|
|
"Trayicon",
|
|
"Trayicon"
|
|
};
|
|
|
|
|
|
-static char *GUI_PREFS_TAB_TRAY_HELP[] = {
|
|
+static const char *GUI_PREFS_TAB_TRAY_HELP[] = {
|
|
"<b>You must restart gbgoffice \nbefore these settings take effect</b>",
|
|
"<b>Òðÿáâà äà ðåñòàðòèðàòå gbgoffice \nçà äà âëÿçàò â ñèëà òåçè íàñòðîéêè</b>"
|
|
};
|
|
|
|
|
|
-static char *GUI_PREFS_USE_TRAYICON[] = {
|
|
+static const char *GUI_PREFS_USE_TRAYICON[] = {
|
|
" Use trayicon",
|
|
" Èçïîëçâà trayicon"
|
|
};
|
|
|
|
|
|
-static char *GUI_PREFS_USE_TRAYICON_CLOSE[] = {
|
|
+static const char *GUI_PREFS_USE_TRAYICON_CLOSE[] = {
|
|
" Closing main window,\n quits application",
|
|
" Çàòâàðÿíåòî íà îñíîâíèÿ ïðîçîðåö,\n ñïèðà ïðîãðàìàòà"
|
|
};
|
|
|
|
-static char *GUI_PREFS_TRAYICON_HIDE_ON_START[] = {
|
|
+static const char *GUI_PREFS_TRAYICON_HIDE_ON_START[] = {
|
|
" Hide main window on startup",
|
|
" Ñêðèâà îñíîâíèÿ ïðîçîðåö ïðè ñòàðòèðàíå"
|
|
};
|
|
|
|
|
|
-static char *GUI_PREFS_USE_WH[] = {
|
|
+static const char *GUI_PREFS_USE_WH[] = {
|
|
" Use helper",
|
|
" Èçïîëçâà ïîìîùíèêà"
|
|
};
|
|
|
|
|
|
-static char *GUI_PREFS_WH_SECONDS[] = {
|
|
+static const char *GUI_PREFS_WH_SECONDS[] = {
|
|
" time for showing helper\n (in seconds)",
|
|
" âðåìå çà ïîêàçâàíå íà ïîìîùíèêà\n (â ñåêóíäè)"
|
|
};
|
|
|
|
|
|
-static char *GUI_EXAM_MENU[] = {
|
|
+static const char *GUI_EXAM_MENU[] = {
|
|
"Make a test",
|
|
"Ïðîâåðêà íà çíàíèÿòà"
|
|
};
|
|
|
|
|
|
-static char *GUI_EXAM_CORRECT[] = {
|
|
+static const char *GUI_EXAM_CORRECT[] = {
|
|
"correct",
|
|
"ïðàâèëíî"
|
|
};
|
|
|
|
-static char *GUI_EXAM_INCORRECT[] = {
|
|
+static const char *GUI_EXAM_INCORRECT[] = {
|
|
"incorrect",
|
|
"ãðåøíî"
|
|
};
|
|
|
|
-static char *GUI_EXAM_NEWTEST[] = {
|
|
+static const char *GUI_EXAM_NEWTEST[] = {
|
|
"Press button \"New\" for new test.",
|
|
"Íàòèñíåòå áóòîíà \"Íîâ\" çà íîâ òåñò."
|
|
};
|
|
|
|
-static char *GUI_EXAM_NEW_LEVEL1[] = {
|
|
+static const char *GUI_EXAM_NEW_LEVEL1[] = {
|
|
"Novice",
|
|
"Íà÷àëíî"
|
|
};
|
|
|
|
-static char *GUI_EXAM_NEW_LEVEL2[] = {
|
|
+static const char *GUI_EXAM_NEW_LEVEL2[] = {
|
|
"Beginner",
|
|
"Ëåñíî"
|
|
};
|
|
|
|
-static char *GUI_EXAM_NEW_LEVEL3[] = {
|
|
+static const char *GUI_EXAM_NEW_LEVEL3[] = {
|
|
"Intermediate",
|
|
"Ñðåäíî"
|
|
};
|
|
|
|
-static char *GUI_EXAM_NEW_LEVEL4[] = {
|
|
+static const char *GUI_EXAM_NEW_LEVEL4[] = {
|
|
"Specialist",
|
|
"Òðóäíî"
|
|
};
|
|
|
|
-static char *GUI_EXAM_NEW_LEVEL5[] = {
|
|
+static const char *GUI_EXAM_NEW_LEVEL5[] = {
|
|
"Expert",
|
|
"Åêñïåðòíî"
|
|
};
|
|
|
|
-static char *GUI_EXAM_TRANSLATION[] = {
|
|
+static const char *GUI_EXAM_TRANSLATION[] = {
|
|
"Translation: ",
|
|
"Ïðåâîä: "
|
|
};
|
|
|
|
-static char *GUI_EXAM_DIFFICULTY[] = {
|
|
+static const char *GUI_EXAM_DIFFICULTY[] = {
|
|
"Difficulty: ",
|
|
"Íèâî: "
|
|
};
|
|
|
|
-static char *GUI_EXAM_NUMTEST[] = {
|
|
+static const char *GUI_EXAM_NUMTEST[] = {
|
|
"Test (0 = random): ",
|
|
"Òåñò (0 = ïðîèçâîëåí): "
|
|
};
|
|
|
|
-static char *GUI_EXAM_NUMQUEST[] = {
|
|
+static const char *GUI_EXAM_NUMQUEST[] = {
|
|
"Num of questions: ",
|
|
"Áðîé âúïðîñè: "
|
|
};
|
|
|
|
-static char *GUI_EXAM_ENDOFTEST[] = {
|
|
+static const char *GUI_EXAM_ENDOFTEST[] = {
|
|
"End of test.",
|
|
"Êðàé íà òåñòà."
|
|
};
|
|
|
|
-static char *GUI_EXAM_TESTNOTSTARTED[] = {
|
|
+static const char *GUI_EXAM_TESTNOTSTARTED[] = {
|
|
"Test not started.",
|
|
"Íå å çàïî÷íàò òåñò."
|
|
};
|
|
|
|
-static char *GUI_EXAM_CORRECT_ANSWERS[] = {
|
|
+static const char *GUI_EXAM_CORRECT_ANSWERS[] = {
|
|
"correct",
|
|
"ïðàâèëíè"
|
|
};
|