containers: Add gettext support for magic containers.

Run the magic contain names through gettext, so they can get localized.
This commit is contained in:
Justin Maggard 2015-12-21 11:49:07 -08:00
parent 520de165fb
commit 1c5e9ae61c
14 changed files with 54 additions and 1 deletions

View File

@ -68,6 +68,10 @@ msgstr "Mapper"
msgid "Playlists" msgid "Playlists"
msgstr "Afspilningslister" msgstr "Afspilningslister"
#: scanner.c:598
msgid "Recently Added"
msgstr "Nylig tilføjet"
#: scanner.c:536 #: scanner.c:536
msgid "Video" msgid "Video"
msgstr "Film" msgstr "Film"

View File

@ -83,6 +83,10 @@ msgstr "Ordner"
msgid "Playlists" msgid "Playlists"
msgstr "Wiedergabelisten" msgstr "Wiedergabelisten"
#: scanner.c:598
msgid "Recently Added"
msgstr "Kürzlich hinzugefügt"
#: scanner.c:536 #: scanner.c:536
msgid "Video" msgid "Video"
msgstr "Video" msgstr "Video"

View File

@ -68,6 +68,10 @@ msgstr "Carpetas"
msgid "Playlists" msgid "Playlists"
msgstr "Listas" msgstr "Listas"
#: scanner.c:598
msgid "Recently Added"
msgstr "Recientemente añadido"
#: scanner.c:536 #: scanner.c:536
msgid "Video" msgid "Video"
msgstr "Vídeo" msgstr "Vídeo"

View File

@ -68,6 +68,10 @@ msgstr "Dossiers"
msgid "Playlists" msgid "Playlists"
msgstr "Liste de lecture" msgstr "Liste de lecture"
#: scanner.c:598
msgid "Recently Added"
msgstr "Ajouts récents"
#: scanner.c:536 #: scanner.c:536
msgid "Video" msgid "Video"
msgstr "Vidéo" msgstr "Vidéo"

View File

@ -70,6 +70,10 @@ msgstr "Cartelle"
msgid "Playlists" msgid "Playlists"
msgstr "Scalette" msgstr "Scalette"
#: scanner.c:598
msgid "Recently Added"
msgstr "Aggiunto recentemente"
#: scanner.c:536 #: scanner.c:536
msgid "Video" msgid "Video"
msgstr "Video" msgstr "Video"

View File

@ -68,6 +68,10 @@ msgstr "フォルダ"
msgid "Playlists" msgid "Playlists"
msgstr "プレイリスト" msgstr "プレイリスト"
#: scanner.c:598
msgid "Recently Added"
msgstr "最近追加された"
#: scanner.c:536 #: scanner.c:536
msgid "Video" msgid "Video"
msgstr "ビデオ" msgstr "ビデオ"

View File

@ -68,6 +68,10 @@ msgstr "폴더"
msgid "Playlists" msgid "Playlists"
msgstr "재생 목록" msgstr "재생 목록"
#: scanner.c:598
msgid "Recently Added"
msgstr "최근에 추가"
#: scanner.c:536 #: scanner.c:536
msgid "Video" msgid "Video"
msgstr "비디오" msgstr "비디오"

View File

@ -84,6 +84,10 @@ msgstr ""
msgid "Playlists" msgid "Playlists"
msgstr "" msgstr ""
#: scanner.c:598
msgid "Recently Added"
msgstr ""
#: scanner.c:536 #: scanner.c:536
msgid "Video" msgid "Video"
msgstr "" msgstr ""

View File

@ -68,6 +68,10 @@ msgstr "Mapper"
msgid "Playlists" msgid "Playlists"
msgstr "Spillelister" msgstr "Spillelister"
#: scanner.c:598
msgid "Recently Added"
msgstr "Nylig lagt til"
#: scanner.c:536 #: scanner.c:536
msgid "Video" msgid "Video"
msgstr "Video" msgstr "Video"

View File

@ -68,6 +68,10 @@ msgstr "Mappen"
msgid "Playlists" msgid "Playlists"
msgstr "Afspeellijst" msgstr "Afspeellijst"
#: scanner.c:598
msgid "Recently Added"
msgstr "Nyligen tillagd"
#: scanner.c:536 #: scanner.c:536
msgid "Video" msgid "Video"
msgstr "Video" msgstr "Video"

View File

@ -83,6 +83,10 @@ msgstr "Folder"
msgid "Playlists" msgid "Playlists"
msgstr "Lista Utworow" msgstr "Lista Utworow"
#: scanner.c:598
msgid "Recently Added"
msgstr "Niedawno dodane"
#: scanner.c:536 #: scanner.c:536
msgid "Video" msgid "Video"
msgstr "Filmy" msgstr "Filmy"

View File

@ -83,6 +83,10 @@ msgstr "Mape"
msgid "Playlists" msgid "Playlists"
msgstr "Seznami predvajanj" msgstr "Seznami predvajanj"
#: scanner.c:598
msgid "Recently Added"
msgstr "nedavno dodano"
#: scanner.c:536 #: scanner.c:536
msgid "Video" msgid "Video"
msgstr "Video" msgstr "Video"

View File

@ -68,6 +68,10 @@ msgstr "Mappar"
msgid "Playlists" msgid "Playlists"
msgstr "Spelningslistor" msgstr "Spelningslistor"
#: scanner.c:598
msgid "Recently Added"
msgstr "nyligen tillagda"
#: scanner.c:536 #: scanner.c:536
msgid "Video" msgid "Video"
msgstr "Film" msgstr "Film"

View File

@ -594,7 +594,8 @@ CreateDatabase(void)
ret = sql_exec(db, "INSERT into OBJECTS (OBJECT_ID, PARENT_ID, DETAIL_ID, CLASS, NAME)" ret = sql_exec(db, "INSERT into OBJECTS (OBJECT_ID, PARENT_ID, DETAIL_ID, CLASS, NAME)"
" values " " values "
"('%s', '%s', %lld, 'container.storageFolder', '%q')", "('%s', '%s', %lld, 'container.storageFolder', '%q')",
magic->objectid_match, parent, GetFolderMetadata(magic->name, NULL, NULL, NULL, 0), magic->name); magic->objectid_match, parent,
GetFolderMetadata(_(magic->name), NULL, NULL, NULL, 0), _(magic->name));
free(parent); free(parent);
if( ret != SQLITE_OK ) if( ret != SQLITE_OK )
goto sql_failed; goto sql_failed;