summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/lang/english.lang365
-rw-r--r--apps/lang/russian.lang357
-rw-r--r--apps/plugins/pictureflow/pictureflow.c72
3 files changed, 759 insertions, 35 deletions
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index b77ae0afb7..5bb2069aac 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -15421,22 +15421,22 @@ id: VOICE_BAT_BENCH_KEYS
15421</phrase> 15421</phrase>
15422<phrase> 15422<phrase>
15423 id: LANG_DISPLAY_FPS 15423 id: LANG_DISPLAY_FPS
15424 desc: in the mpegplayer settings menu 15424 desc: in the mpegplayer and pictureflow settings menus
15425 user: core 15425 user: core
15426 <source> 15426 <source>
15427 *: none 15427 *: none
15428 swcodec: "Display FPS" 15428 swcodec: "Display FPS"
15429 lowmem: none 15429 lcd_bitmap: "Display FPS"
15430 </source> 15430 </source>
15431 <dest> 15431 <dest>
15432 *: none 15432 *: none
15433 swcodec: "Display FPS" 15433 swcodec: "Display FPS"
15434 lowmem: none 15434 lcd_bitmap: "Display FPS"
15435 </dest> 15435 </dest>
15436 <voice> 15436 <voice>
15437 *: none 15437 *: none
15438 swcodec: "Display FPS" 15438 swcodec: "Display FPS"
15439 lowmem: none 15439 lcd_bitmap: "Display FPS"
15440 </voice> 15440 </voice>
15441</phrase> 15441</phrase>
15442<phrase> 15442<phrase>
@@ -16033,3 +16033,360 @@ id: VOICE_BAT_BENCH_KEYS
16033 lowmem: none 16033 lowmem: none
16034 </voice> 16034 </voice>
16035</phrase> 16035</phrase>
16036<phrase>
16037 id: LANG_SPACING
16038 desc: in the pictureflow settings menu
16039 user: core
16040 <source>
16041 *: none
16042 lcd_bitmap: "Spacing"
16043 </source>
16044 <dest>
16045 *: none
16046 lcd_bitmap: "Spacing"
16047 </dest>
16048 <voice>
16049 *: none
16050 lcd_bitmap: "Spacing"
16051 </voice>
16052</phrase>
16053<phrase>
16054 id: LANG_CENTRE_MARGIN
16055 desc: in the pictureflow settings menu
16056 user: core
16057 <source>
16058 *: none
16059 lcd_bitmap: "Centre margin"
16060 </source>
16061 <dest>
16062 *: none
16063 lcd_bitmap: "Centre margin"
16064 </dest>
16065 <voice>
16066 *: none
16067 lcd_bitmap: "Centre margin"
16068 </voice>
16069</phrase>
16070<phrase>
16071 id: LANG_NUMBER_OF_SLIDES
16072 desc: in the pictureflow settings menu
16073 user: core
16074 <source>
16075 *: none
16076 lcd_bitmap: "Number of slides"
16077 </source>
16078 <dest>
16079 *: none
16080 lcd_bitmap: "Number of slides"
16081 </dest>
16082 <voice>
16083 *: none
16084 lcd_bitmap: "Number of slides"
16085 </voice>
16086</phrase>
16087<phrase>
16088 id: LANG_ZOOM
16089 desc: in the pictureflow settings menu
16090 user: core
16091 <source>
16092 *: none
16093 lcd_bitmap: "Zoom"
16094 </source>
16095 <dest>
16096 *: none
16097 lcd_bitmap: "Zoom"
16098 </dest>
16099 <voice>
16100 *: none
16101 lcd_bitmap: "Zoom"
16102 </voice>
16103</phrase>
16104<phrase>
16105 id: LANG_SHOW_ALBUM_TITLE
16106 desc: in the pictureflow settings menu
16107 user: core
16108 <source>
16109 *: none
16110 lcd_bitmap: "Show album title"
16111 </source>
16112 <dest>
16113 *: none
16114 lcd_bitmap: "Show album title"
16115 </dest>
16116 <voice>
16117 *: none
16118 lcd_bitmap: "Show album title"
16119 </voice>
16120</phrase>
16121<phrase>
16122 id: LANG_RESIZE_COVERS
16123 desc: in the pictureflow settings menu
16124 user: core
16125 <source>
16126 *: none
16127 lcd_bitmap: "Resize Covers"
16128 </source>
16129 <dest>
16130 *: none
16131 lcd_bitmap: "Resize Covers"
16132 </dest>
16133 <voice>
16134 *: none
16135 lcd_bitmap: "Resize Covers"
16136 </voice>
16137</phrase>
16138<phrase>
16139 id: LANG_REBUILD_CACHE
16140 desc: in the pictureflow settings menu
16141 user: core
16142 <source>
16143 *: none
16144 lcd_bitmap: "Rebuild cache"
16145 </source>
16146 <dest>
16147 *: none
16148 lcd_bitmap: "Rebuild cache"
16149 </dest>
16150 <voice>
16151 *: none
16152 lcd_bitmap: "Rebuild cache"
16153 </voice>
16154</phrase>
16155<phrase>
16156 id: LANG_WPS_INTEGRATION
16157 desc: in the pictureflow settings menu
16158 user: core
16159 <source>
16160 *: none
16161 lcd_bitmap: "WPS Integration"
16162 </source>
16163 <dest>
16164 *: none
16165 lcd_bitmap: "WPS Integration"
16166 </dest>
16167 <voice>
16168 *: none
16169 lcd_bitmap: "WPS Integration"
16170 </voice>
16171</phrase>
16172<phrase>
16173 id: LANG_GOTO_WPS
16174 desc: in the pictureflow main menu
16175 user: core
16176 <source>
16177 *: none
16178 lcd_bitmap: "Go to WPS"
16179 </source>
16180 <dest>
16181 *: none
16182 lcd_bitmap: "Go to WPS"
16183 </dest>
16184 <voice>
16185 *: none
16186 lcd_bitmap: "Go to WPS"
16187 </voice>
16188</phrase>
16189<phrase>
16190 id: LANG_CLEAR_PLAYLIST
16191 desc: in the pictureflow main menu
16192 user: core
16193 <source>
16194 *: none
16195 lcd_bitmap: "Clear playlist"
16196 </source>
16197 <dest>
16198 *: none
16199 lcd_bitmap: "Clear playlist"
16200 </dest>
16201 <voice>
16202 *: none
16203 lcd_bitmap: "Clear playlist"
16204 </voice>
16205</phrase>
16206<phrase>
16207 id: LANG_HIDE_ALBUM_TITLE
16208 desc: in the pictureflow settings
16209 user: core
16210 <source>
16211 *: none
16212 lcd_bitmap: "Hide album title"
16213 </source>
16214 <dest>
16215 *: none
16216 lcd_bitmap: "Hide album title"
16217 </dest>
16218 <voice>
16219 *: none
16220 lcd_bitmap: "Hide album title"
16221 </voice>
16222</phrase>
16223<phrase>
16224 id: LANG_SHOW_AT_THE_BOTTOM
16225 desc: in the pictureflow settings
16226 user: core
16227 <source>
16228 *: none
16229 lcd_bitmap: "Show at the bottom"
16230 </source>
16231 <dest>
16232 *: none
16233 lcd_bitmap: "Show at the bottom"
16234 </dest>
16235 <voice>
16236 *: none
16237 lcd_bitmap: "Show at the bottom"
16238 </voice>
16239</phrase>
16240<phrase>
16241 id: LANG_SHOW_AT_THE_TOP
16242 desc: in the pictureflow settings
16243 user: core
16244 <source>
16245 *: none
16246 lcd_bitmap: "Show at the top"
16247 </source>
16248 <dest>
16249 *: none
16250 lcd_bitmap: "Show at the top"
16251 </dest>
16252 <voice>
16253 *: none
16254 lcd_bitmap: "Show at the top"
16255 </voice>
16256</phrase>
16257<phrase>
16258 id: LANG_DIRECT
16259 desc: in the pictureflow settings
16260 user: core
16261 <source>
16262 *: none
16263 lcd_bitmap: "Direct"
16264 </source>
16265 <dest>
16266 *: none
16267 lcd_bitmap: "Direct"
16268 </dest>
16269 <voice>
16270 *: none
16271 lcd_bitmap: "Direct"
16272 </voice>
16273</phrase>
16274<phrase>
16275 id: LANG_VIA_TRACK_LIST
16276 desc: in the pictureflow settings
16277 user: core
16278 <source>
16279 *: none
16280 lcd_bitmap: "Via Track list"
16281 </source>
16282 <dest>
16283 *: none
16284 lcd_bitmap: "Via Track list"
16285 </dest>
16286 <voice>
16287 *: none
16288 lcd_bitmap: "Via Track list"
16289 </voice>
16290</phrase>
16291<phrase>
16292 id: LANG_ALWAYS_ON
16293 desc: in the pictureflow settings menu
16294 user: core
16295 <source>
16296 *: none
16297 lcd_bitmap: "Always On"
16298 </source>
16299 <dest>
16300 *: none
16301 lcd_bitmap: "Always On"
16302 </dest>
16303 <voice>
16304 *: none
16305 lcd_bitmap: "Always On"
16306 </voice>
16307</phrase>
16308<phrase>
16309 id: LANG_NO_ALBUMART_FOUND
16310 desc: in the pictureflow splash messages
16311 user: core
16312 <source>
16313 *: none
16314 lcd_bitmap: "No album art found"
16315 </source>
16316 <dest>
16317 *: none
16318 lcd_bitmap: "No album art found"
16319 </dest>
16320 <voice>
16321 *: none
16322 lcd_bitmap: "No album art found"
16323 </voice>
16324</phrase>
16325<phrase>
16326 id: LANG_CACHE_REBUILT_NEXT_RESTART
16327 desc: in the pictureflow splash messages
16328 user: core
16329 <source>
16330 *: none
16331 lcd_bitmap: "Cache will be rebuilt on next restart"
16332 </source>
16333 <dest>
16334 *: none
16335 lcd_bitmap: "Cache will be rebuilt on next restart"
16336 </dest>
16337 <voice>
16338 *: none
16339 lcd_bitmap: "Cache will be rebuilt on next restart"
16340 </voice>
16341</phrase>
16342<phrase>
16343 id: LANG_PLAYLIST_CLEARED
16344 desc: in the pictureflow splash messages
16345 user: core
16346 <source>
16347 *: none
16348 lcd_bitmap: "Playlist Cleared"
16349 </source>
16350 <dest>
16351 *: none
16352 lcd_bitmap: "Playlist Cleared"
16353 </dest>
16354 <voice>
16355 *: none
16356 lcd_bitmap: "Playlist Cleared"
16357 </voice>
16358</phrase>
16359<phrase>
16360 id: LANG_ADDED_TO_PLAYLIST
16361 desc: in the pictureflow splash messages
16362 user: core
16363 <source>
16364 *: none
16365 lcd_bitmap: "Added to playlist"
16366 </source>
16367 <dest>
16368 *: none
16369 lcd_bitmap: "Added to playlist"
16370 </dest>
16371 <voice>
16372 *: none
16373 lcd_bitmap: "Added to playlist"
16374 </voice>
16375</phrase>
16376<phrase>
16377 id: LANG_ERROR_WRITING_CONFIG
16378 desc: in the pictureflow splash messages
16379 user: core
16380 <source>
16381 *: none
16382 lcd_bitmap: "Error writing config"
16383 </source>
16384 <dest>
16385 *: none
16386 lcd_bitmap: "Error writing config"
16387 </dest>
16388 <voice>
16389 *: none
16390 lcd_bitmap: "Error writing config"
16391 </voice>
16392</phrase>
diff --git a/apps/lang/russian.lang b/apps/lang/russian.lang
index 7b7384a8c7..990f095a01 100644
--- a/apps/lang/russian.lang
+++ b/apps/lang/russian.lang
@@ -13884,3 +13884,360 @@
13884 lowmem: none 13884 lowmem: none
13885 </voice> 13885 </voice>
13886</phrase> 13886</phrase>
13887<phrase>
13888 id: LANG_SPACING
13889 desc: in the pictureflow settings menu
13890 user: core
13891 <source>
13892 *: none
13893 lcd_bitmap: "Spacing"
13894 </source>
13895 <dest>
13896 *: none
13897 lcd_bitmap: "Разбивка"
13898 </dest>
13899 <voice>
13900 *: none
13901 lcd_bitmap: "Разбивка"
13902 </voice>
13903</phrase>
13904<phrase>
13905 id: LANG_CENTRE_MARGIN
13906 desc: in the pictureflow settings menu
13907 user: core
13908 <source>
13909 *: none
13910 lcd_bitmap: "Centre margin"
13911 </source>
13912 <dest>
13913 *: none
13914 lcd_bitmap: "Центральное поле"
13915 </dest>
13916 <voice>
13917 *: none
13918 lcd_bitmap: "Центральное поле"
13919 </voice>
13920</phrase>
13921<phrase>
13922 id: LANG_NUMBER_OF_SLIDES
13923 desc: in the pictureflow settings menu
13924 user: core
13925 <source>
13926 *: none
13927 lcd_bitmap: "Number of slides"
13928 </source>
13929 <dest>
13930 *: none
13931 lcd_bitmap: "Число слайдов"
13932 </dest>
13933 <voice>
13934 *: none
13935 lcd_bitmap: "Число слайдов"
13936 </voice>
13937</phrase>
13938<phrase>
13939 id: LANG_ZOOM
13940 desc: in the pictureflow settings menu
13941 user: core
13942 <source>
13943 *: none
13944 lcd_bitmap: "Zoom"
13945 </source>
13946 <dest>
13947 *: none
13948 lcd_bitmap: "Увеличение"
13949 </dest>
13950 <voice>
13951 *: none
13952 lcd_bitmap: "Увеличение"
13953 </voice>
13954</phrase>
13955<phrase>
13956 id: LANG_SHOW_ALBUM_TITLE
13957 desc: in the pictureflow settings menu
13958 user: core
13959 <source>
13960 *: none
13961 lcd_bitmap: "Show album title"
13962 </source>
13963 <dest>
13964 *: none
13965 lcd_bitmap: "Показывать название альбома"
13966 </dest>
13967 <voice>
13968 *: none
13969 lcd_bitmap: "Показывать название альбома"
13970 </voice>
13971</phrase>
13972<phrase>
13973 id: LANG_RESIZE_COVERS
13974 desc: in the pictureflow settings menu
13975 user: core
13976 <source>
13977 *: none
13978 lcd_bitmap: "Resize Covers"
13979 </source>
13980 <dest>
13981 *: none
13982 lcd_bitmap: "Изменить размер обложек"
13983 </dest>
13984 <voice>
13985 *: none
13986 lcd_bitmap: "Изменить размер обложек"
13987 </voice>
13988</phrase>
13989<phrase>
13990 id: LANG_REBUILD_CACHE
13991 desc: in the pictureflow settings menu
13992 user: core
13993 <source>
13994 *: none
13995 lcd_bitmap: "Rebuild cache"
13996 </source>
13997 <dest>
13998 *: none
13999 lcd_bitmap: "Обновить кэш"
14000 </dest>
14001 <voice>
14002 *: none
14003 lcd_bitmap: "Обновить кэш"
14004 </voice>
14005</phrase>
14006<phrase>
14007 id: LANG_WPS_INTEGRATION
14008 desc: in the pictureflow settings menu
14009 user: core
14010 <source>
14011 *: none
14012 lcd_bitmap: "WPS Integration"
14013 </source>
14014 <dest>
14015 *: none
14016 lcd_bitmap: "Взаимодействие с экраном воспроизведения"
14017 </dest>
14018 <voice>
14019 *: none
14020 lcd_bitmap: "Взаимодействие с экраном воспроизведения"
14021 </voice>
14022</phrase>
14023<phrase>
14024 id: LANG_GOTO_WPS
14025 desc: in the pictureflow main menu
14026 user: core
14027 <source>
14028 *: none
14029 lcd_bitmap: "Go to WPS"
14030 </source>
14031 <dest>
14032 *: none
14033 lcd_bitmap: "Перейти к экрану воспроизведения"
14034 </dest>
14035 <voice>
14036 *: none
14037 lcd_bitmap: "Перейти к экрану воспроизведения"
14038 </voice>
14039</phrase>
14040<phrase>
14041 id: LANG_CLEAR_PLAYLIST
14042 desc: in the pictureflow main menu
14043 user: core
14044 <source>
14045 *: none
14046 lcd_bitmap: "Clear playlist"
14047 </source>
14048 <dest>
14049 *: none
14050 lcd_bitmap: "Очистить список воспроизведения"
14051 </dest>
14052 <voice>
14053 *: none
14054 lcd_bitmap: "Очистить список воспроизведения"
14055 </voice>
14056</phrase>
14057<phrase>
14058 id: LANG_HIDE_ALBUM_TITLE
14059 desc: in the pictureflow settings
14060 user: core
14061 <source>
14062 *: none
14063 lcd_bitmap: "Hide album title"
14064 </source>
14065 <dest>
14066 *: none
14067 lcd_bitmap: "Скрыть название альбома"
14068 </dest>
14069 <voice>
14070 *: none
14071 lcd_bitmap: "Скрыть название альбома"
14072 </voice>
14073</phrase>
14074<phrase>
14075 id: LANG_SHOW_AT_THE_BOTTOM
14076 desc: in the pictureflow settings
14077 user: core
14078 <source>
14079 *: none
14080 lcd_bitmap: "Show at the bottom"
14081 </source>
14082 <dest>
14083 *: none
14084 lcd_bitmap: "Показывать внизу"
14085 </dest>
14086 <voice>
14087 *: none
14088 lcd_bitmap: "Показывать внизу"
14089 </voice>
14090</phrase>
14091<phrase>
14092 id: LANG_SHOW_AT_THE_TOP
14093 desc: in the pictureflow settings
14094 user: core
14095 <source>
14096 *: none
14097 lcd_bitmap: "Show at the top"
14098 </source>
14099 <dest>
14100 *: none
14101 lcd_bitmap: "Показывать вверху"
14102 </dest>
14103 <voice>
14104 *: none
14105 lcd_bitmap: "Показывать вверху"
14106 </voice>
14107</phrase>
14108<phrase>
14109 id: LANG_DIRECT
14110 desc: in the pictureflow settings
14111 user: core
14112 <source>
14113 *: none
14114 lcd_bitmap: "Direct"
14115 </source>
14116 <dest>
14117 *: none
14118 lcd_bitmap: "Непосредственно"
14119 </dest>
14120 <voice>
14121 *: none
14122 lcd_bitmap: "Непосредственно"
14123 </voice>
14124</phrase>
14125<phrase>
14126 id: LANG_VIA_TRACK_LIST
14127 desc: in the pictureflow settings
14128 user: core
14129 <source>
14130 *: none
14131 lcd_bitmap: "Via Track list"
14132 </source>
14133 <dest>
14134 *: none
14135 lcd_bitmap: "Через список треков"
14136 </dest>
14137 <voice>
14138 *: none
14139 lcd_bitmap: "Через список трэков"
14140 </voice>
14141</phrase>
14142<phrase>
14143 id: LANG_ALWAYS_ON
14144 desc: in the pictureflow settings menu
14145 user: core
14146 <source>
14147 *: none
14148 lcd_bitmap: "Always On"
14149 </source>
14150 <dest>
14151 *: none
14152 lcd_bitmap: "Всегда включено"
14153 </dest>
14154 <voice>
14155 *: none
14156 lcd_bitmap: "Всегда включено"
14157 </voice>
14158</phrase>
14159<phrase>
14160 id: LANG_NO_ALBUMART_FOUND
14161 desc: in the pictureflow splash messages
14162 user: core
14163 <source>
14164 *: none
14165 lcd_bitmap: "No album art found"
14166 </source>
14167 <dest>
14168 *: none
14169 lcd_bitmap: "Обложек не найдено"
14170 </dest>
14171 <voice>
14172 *: none
14173 lcd_bitmap: "Обложек не найдено"
14174 </voice>
14175</phrase>
14176<phrase>
14177 id: LANG_CACHE_REBUILT_NEXT_RESTART
14178 desc: in the pictureflow splash messages
14179 user: core
14180 <source>
14181 *: none
14182 lcd_bitmap: "Cache will be rebuilt on next restart"
14183 </source>
14184 <dest>
14185 *: none
14186 lcd_bitmap: "Кэш будет обновлен при перезапуске"
14187 </dest>
14188 <voice>
14189 *: none
14190 lcd_bitmap: "Кэш будет обновлен при перезапуске"
14191 </voice>
14192</phrase>
14193<phrase>
14194 id: LANG_PLAYLIST_CLEARED
14195 desc: in the pictureflow splash messages
14196 user: core
14197 <source>
14198 *: none
14199 lcd_bitmap: "Playlist Cleared"
14200 </source>
14201 <dest>
14202 *: none
14203 lcd_bitmap: "Список воспроизведения очищен"
14204 </dest>
14205 <voice>
14206 *: none
14207 lcd_bitmap: "Список воспроизведения очищен"
14208 </voice>
14209</phrase>
14210<phrase>
14211 id: LANG_ADDED_TO_PLAYLIST
14212 desc: in the pictureflow splash messages
14213 user: core
14214 <source>
14215 *: none
14216 lcd_bitmap: "Added to playlist"
14217 </source>
14218 <dest>
14219 *: none
14220 lcd_bitmap: "Добавлено к списку воспроизведения"
14221 </dest>
14222 <voice>
14223 *: none
14224 lcd_bitmap: "Добавлено к списку воспроизведения"
14225 </voice>
14226</phrase>
14227<phrase>
14228 id: LANG_ERROR_WRITING_CONFIG
14229 desc: in the pictureflow splash messages
14230 user: core
14231 <source>
14232 *: none
14233 lcd_bitmap: "Error writing config"
14234 </source>
14235 <dest>
14236 *: none
14237 lcd_bitmap: "Ошибка при записи конфигурации"
14238 </dest>
14239 <voice>
14240 *: none
14241 lcd_bitmap: "Ошибка при записи конфигурации"
14242 </voice>
14243</phrase>
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index 84a4315141..c9d425c549 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -1261,7 +1261,7 @@ static bool create_albumart_cache(void)
1261 draw_progressbar(i); 1261 draw_progressbar(i);
1262 if ( slides == 0 ) { 1262 if ( slides == 0 ) {
1263 /* Warn the user that we couldn't find any albumart */ 1263 /* Warn the user that we couldn't find any albumart */
1264 rb->splash(2*HZ, "No album art found"); 1264 rb->splash(2*HZ, ID2P(LANG_NO_ALBUMART_FOUND));
1265 return false; 1265 return false;
1266 } 1266 }
1267 return true; 1267 return true;
@@ -2236,36 +2236,43 @@ static int settings_menu(void)
2236 int selection = 0; 2236 int selection = 0;
2237 bool old_val; 2237 bool old_val;
2238 2238
2239 MENUITEM_STRINGLIST(settings_menu, "PictureFlow Settings", NULL, "Show FPS", 2239 MENUITEM_STRINGLIST(settings_menu, "PictureFlow Settings", NULL,
2240 "Spacing", "Centre margin", "Number of slides", "Zoom", 2240 ID2P(LANG_DISPLAY_FPS),
2241 "Show album title", "Resize Covers", "Rebuild cache", 2241 ID2P(LANG_SPACING),
2242 "WPS Integration", "Backlight"); 2242 ID2P(LANG_CENTRE_MARGIN),
2243 ID2P(LANG_NUMBER_OF_SLIDES),
2244 ID2P(LANG_ZOOM),
2245 ID2P(LANG_SHOW_ALBUM_TITLE),
2246 ID2P(LANG_RESIZE_COVERS),
2247 ID2P(LANG_REBUILD_CACHE),
2248 ID2P(LANG_WPS_INTEGRATION),
2249 ID2P(LANG_BACKLIGHT));
2243 2250
2244 static const struct opt_items album_name_options[] = { 2251 static const struct opt_items album_name_options[] = {
2245 { "Hide album title", -1 }, 2252 { STR(LANG_HIDE_ALBUM_TITLE) },
2246 { "Show at the bottom", -1 }, 2253 { STR(LANG_SHOW_AT_THE_BOTTOM) },
2247 { "Show at the top", -1 } 2254 { STR(LANG_SHOW_AT_THE_TOP) }
2248 }; 2255 };
2249 static const struct opt_items wps_options[] = { 2256 static const struct opt_items wps_options[] = {
2250 { "Off", -1 }, 2257 { STR(LANG_OFF) },
2251 { "Direct", -1 }, 2258 { STR(LANG_DIRECT) },
2252 { "Via Track list", -1 } 2259 { STR(LANG_VIA_TRACK_LIST) }
2253 }; 2260 };
2254 static const struct opt_items backlight_options[] = { 2261 static const struct opt_items backlight_options[] = {
2255 { "Always On", -1 }, 2262 { STR(LANG_ALWAYS_ON) },
2256 { "Normal", -1 }, 2263 { STR(LANG_NORMAL) },
2257 }; 2264 };
2258 2265
2259 do { 2266 do {
2260 selection=rb->do_menu(&settings_menu,&selection, NULL, false); 2267 selection=rb->do_menu(&settings_menu,&selection, NULL, false);
2261 switch(selection) { 2268 switch(selection) {
2262 case 0: 2269 case 0:
2263 rb->set_bool("Show FPS", &show_fps); 2270 rb->set_bool(rb->str(LANG_DISPLAY_FPS), &show_fps);
2264 reset_track_list(); 2271 reset_track_list();
2265 break; 2272 break;
2266 2273
2267 case 1: 2274 case 1:
2268 rb->set_int("Spacing between slides", "", 1, 2275 rb->set_int(rb->str(LANG_SPACING), "", 1,
2269 &slide_spacing, 2276 &slide_spacing,
2270 NULL, 1, 0, 100, NULL ); 2277 NULL, 1, 0, 100, NULL );
2271 recalc_offsets(); 2278 recalc_offsets();
@@ -2273,7 +2280,7 @@ static int settings_menu(void)
2273 break; 2280 break;
2274 2281
2275 case 2: 2282 case 2:
2276 rb->set_int("Centre margin", "", 1, 2283 rb->set_int(rb->str(LANG_CENTRE_MARGIN), "", 1,
2277 &center_margin, 2284 &center_margin,
2278 NULL, 1, 0, 80, NULL ); 2285 NULL, 1, 0, 80, NULL );
2279 recalc_offsets(); 2286 recalc_offsets();
@@ -2281,20 +2288,20 @@ static int settings_menu(void)
2281 break; 2288 break;
2282 2289
2283 case 3: 2290 case 3:
2284 rb->set_int("Number of slides", "", 1, &num_slides, 2291 rb->set_int(rb->str(LANG_NUMBER_OF_SLIDES), "", 1, &num_slides,
2285 NULL, 1, 1, MAX_SLIDES_COUNT, NULL ); 2292 NULL, 1, 1, MAX_SLIDES_COUNT, NULL );
2286 recalc_offsets(); 2293 recalc_offsets();
2287 reset_slides(); 2294 reset_slides();
2288 break; 2295 break;
2289 2296
2290 case 4: 2297 case 4:
2291 rb->set_int("Zoom", "", 1, &zoom, 2298 rb->set_int(rb->str(LANG_ZOOM), "", 1, &zoom,
2292 NULL, 1, 10, 300, NULL ); 2299 NULL, 1, 10, 300, NULL );
2293 recalc_offsets(); 2300 recalc_offsets();
2294 reset_slides(); 2301 reset_slides();
2295 break; 2302 break;
2296 case 5: 2303 case 5:
2297 rb->set_option("Show album title", &show_album_name, 2304 rb->set_option(rb->str(LANG_SHOW_ALBUM_TITLE), &show_album_name,
2298 INT, album_name_options, 3, NULL); 2305 INT, album_name_options, 3, NULL);
2299 reset_track_list(); 2306 reset_track_list();
2300 recalc_offsets(); 2307 recalc_offsets();
@@ -2302,7 +2309,7 @@ static int settings_menu(void)
2302 break; 2309 break;
2303 case 6: 2310 case 6:
2304 old_val = resize; 2311 old_val = resize;
2305 rb->set_bool("Resize Covers", &resize); 2312 rb->set_bool(rb->str(LANG_RESIZE_COVERS), &resize);
2306 if (old_val == resize) /* changed? */ 2313 if (old_val == resize) /* changed? */
2307 break; 2314 break;
2308 /* fallthrough if changed, since cache needs to be rebuilt */ 2315 /* fallthrough if changed, since cache needs to be rebuilt */
@@ -2311,13 +2318,13 @@ static int settings_menu(void)
2311 rb->remove(EMPTY_SLIDE); 2318 rb->remove(EMPTY_SLIDE);
2312 configfile_save(CONFIG_FILE, config, 2319 configfile_save(CONFIG_FILE, config,
2313 CONFIG_NUM_ITEMS, CONFIG_VERSION); 2320 CONFIG_NUM_ITEMS, CONFIG_VERSION);
2314 rb->splash(HZ, "Cache will be rebuilt on next restart"); 2321 rb->splash(HZ, ID2P(LANG_CACHE_REBUILT_NEXT_RESTART));
2315 break; 2322 break;
2316 case 8: 2323 case 8:
2317 rb->set_option("WPS Integration", &auto_wps, INT, wps_options, 3, NULL); 2324 rb->set_option(rb->str(LANG_WPS_INTEGRATION), &auto_wps, INT, wps_options, 3, NULL);
2318 break; 2325 break;
2319 case 9: 2326 case 9:
2320 rb->set_option("Backlight", &backlight_mode, INT, backlight_options, 2, NULL); 2327 rb->set_option(rb->str(LANG_BACKLIGHT), &backlight_mode, INT, backlight_options, 2, NULL);
2321 break; 2328 break;
2322 2329
2323 case MENU_ATTACHED_USB: 2330 case MENU_ATTACHED_USB:
@@ -2350,12 +2357,15 @@ static int main_menu(void)
2350 rb->lcd_set_foreground(N_BRIGHT(255)); 2357 rb->lcd_set_foreground(N_BRIGHT(255));
2351#endif 2358#endif
2352 2359
2353 MENUITEM_STRINGLIST(main_menu,"PictureFlow Main Menu",NULL, 2360 MENUITEM_STRINGLIST(main_menu, "PictureFlow Main Menu", NULL,
2354 "Go to WPS", 2361 ID2P(LANG_GOTO_WPS),
2355#if PF_PLAYBACK_CAPABLE 2362#if PF_PLAYBACK_CAPABLE
2356 "Clear playlist", "Playback Control", 2363 ID2P(LANG_CLEAR_PLAYLIST),
2364 ID2P(LANG_PLAYBACK_CONTROL),
2357#endif 2365#endif
2358 "Settings", "Return", "Quit"); 2366 ID2P(LANG_SETTINGS),
2367 ID2P(LANG_RETURN),
2368 ID2P(LANG_MENU_QUIT));
2359 while (1) { 2369 while (1) {
2360 switch (rb->do_menu(&main_menu,&selection, NULL, false)) { 2370 switch (rb->do_menu(&main_menu,&selection, NULL, false)) {
2361 case PF_GOTO_WPS: /* WPS */ 2371 case PF_GOTO_WPS: /* WPS */
@@ -2364,7 +2374,7 @@ static int main_menu(void)
2364 case PF_MENU_CLEAR_PLAYLIST: 2374 case PF_MENU_CLEAR_PLAYLIST:
2365 if(rb->playlist_remove_all_tracks(NULL) == 0) { 2375 if(rb->playlist_remove_all_tracks(NULL) == 0) {
2366 rb->playlist_create(NULL, NULL); 2376 rb->playlist_create(NULL, NULL);
2367 rb->splash(HZ*2, "Playlist Cleared"); 2377 rb->splash(HZ*2, ID2P(LANG_PLAYLIST_CLEARED));
2368 } 2378 }
2369 break; 2379 break;
2370 case PF_MENU_PLAYBACK_CONTROL: /* Playback Control */ 2380 case PF_MENU_PLAYBACK_CONTROL: /* Playback Control */
@@ -2900,13 +2910,13 @@ static int pictureflow_main(void)
2900 create_track_index(center_slide.slide_index); 2910 create_track_index(center_slide.slide_index);
2901 reset_track_list(); 2911 reset_track_list();
2902 start_playback(true); 2912 start_playback(true);
2903 rb->splash(HZ*2, "Added to playlist"); 2913 rb->splash(HZ*2, ID2P(LANG_ADDED_TO_PLAYLIST));
2904 } 2914 }
2905 else if( pf_state == pf_show_tracks ) { 2915 else if( pf_state == pf_show_tracks ) {
2906 rb->playlist_insert_track(NULL, get_track_filename(selected_track), 2916 rb->playlist_insert_track(NULL, get_track_filename(selected_track),
2907 PLAYLIST_INSERT_LAST, false, true); 2917 PLAYLIST_INSERT_LAST, false, true);
2908 rb->playlist_sync(NULL); 2918 rb->playlist_sync(NULL);
2909 rb->splash(HZ*2, "Added to playlist"); 2919 rb->splash(HZ*2, ID2P(LANG_ADDED_TO_PLAYLIST));
2910 } 2920 }
2911 } 2921 }
2912 break; 2922 break;
@@ -2989,7 +2999,7 @@ enum plugin_status plugin_start(const void *parameter)
2989 if (configfile_save(CONFIG_FILE, config, CONFIG_NUM_ITEMS, 2999 if (configfile_save(CONFIG_FILE, config, CONFIG_NUM_ITEMS,
2990 CONFIG_VERSION)) 3000 CONFIG_VERSION))
2991 { 3001 {
2992 rb->splash(HZ, "Error writing config."); 3002 rb->splash(HZ, ID2P(LANG_ERROR_WRITING_CONFIG));
2993 ret = PLUGIN_ERROR; 3003 ret = PLUGIN_ERROR;
2994 } 3004 }
2995 } 3005 }