diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-11 13:11:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-11 13:11:39 +0200 |
commit | a60e536a290f7c14cf2b255ddb7071b39619fcd3 (patch) | |
tree | 4646c29620a529bf9a3e7b789b681350e22c68eb /src/po | |
parent | ef8c83c550e2562362c4385f0823e41ae67cfada (diff) | |
download | vim-git-a60e536a290f7c14cf2b255ddb7071b39619fcd3.tar.gz |
patch 8.1.1147: desktop file translations are requiring manual updatesv8.1.1147
Problem: Desktop file translations are requiring manual updates.
Solution: Use the .po files for desktop file translations. (Christian
Brabandt)
Diffstat (limited to 'src/po')
-rw-r--r-- | src/po/Makefile | 14 | ||||
-rw-r--r-- | src/po/gvim.desktop.in | 97 | ||||
-rw-r--r-- | src/po/vim.desktop.in | 94 |
3 files changed, 202 insertions, 3 deletions
diff --git a/src/po/Makefile b/src/po/Makefile index c6758e2b7..70f7fc836 100644 --- a/src/po/Makefile +++ b/src/po/Makefile @@ -25,6 +25,9 @@ MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes msgmerge .SUFFIXES: .po .mo .pot .ck .PHONY: all install uninstall prefixcheck converted check clean checkclean distclean update-po $(LANGUAGES) +LINGUAS: + @echo $(LANGUAGES) | tr " " "\n" |sed -e '/\./d' | sort > LINGUAS + .po.mo: $(MSGFMTCMD) -o $@ $< @@ -32,7 +35,7 @@ MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes msgmerge $(VIM) -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq $< touch $@ -all: $(MOFILES) $(MOCONVERTED) +all: $(MOFILES) $(MOCONVERTED) gvim.desktop vim.desktop check: $(CHECKFILES) @@ -157,12 +160,17 @@ distclean: clean checkclean: rm -f *.ck -$(PACKAGE).pot: ../*.c ../if_perl.xs ../GvimExt/gvimext.cpp ../globals.h ../if_py_both.h ../vim.h +$(PACKAGE).pot: ../*.c ../if_perl.xs ../GvimExt/gvimext.cpp ../globals.h ../if_py_both.h ../vim.h gvim.desktop.in vim.desktop.in cd ..; $(XGETTEXT) --default-domain=$(PACKAGE) \ --add-comments --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2 \ - *.c if_perl.xs GvimExt/gvimext.cpp globals.h if_py_both.h vim.h + *.c if_perl.xs GvimExt/gvimext.cpp globals.h if_py_both.h vim.h \ + po/gvim.desktop.in po/vim.desktop.in mv -f ../$(PACKAGE).po $(PACKAGE).pot +%.desktop: %.desktop.in $(PACKAGE).pot LINGUAS + $(MSGFMT) --desktop -d . --template $< -o $@ + cp -f $@ ../../runtime/$@ + update-po: $(LANGUAGES) # Don't add a dependency here, we only want to update the .po files manually diff --git a/src/po/gvim.desktop.in b/src/po/gvim.desktop.in new file mode 100644 index 000000000..92b8aa181 --- /dev/null +++ b/src/po/gvim.desktop.in @@ -0,0 +1,97 @@ +# The gvim.desktop file is generated by src/po/Makefile, do NOT edit. +# Edit the src/po/gvim.desktop.in file instead. +[Desktop Entry] +# Translators: This is the Application Name used in the GVim desktop file +Name=GVim +# Translators: This is the Generic Application Name used in the Vim desktop file +GenericName=Text Editor +# Translators: This is the comment used in the Vim desktop file +Comment=Edit text files +# The translations should come from the po file. Leave them here for now, they will +# be overwritten by the po file when generating the desktop.file! +GenericName[da]=Teksteditor +GenericName[de]=Texteditor +GenericName[eo]=Tekstoredaktilo +GenericName[fr]=Éditeur de texte +GenericName[pl]=Edytor tekstu +GenericName[is]=Ritvinnsluforrit +Comment[af]=Redigeer tekslêers +Comment[am]=የጽሑፍ ፋይሎች ያስተካክሉ +Comment[ar]=حرّر ملفات نصية +Comment[az]=Mətn fayllarını redaktə edin +Comment[be]=Рэдагаваньне тэкставых файлаў +Comment[bg]=Редактиране на текстови файлове +Comment[bn]=টেক্স্ট ফাইল এডিট করুন +Comment[bs]=Izmijeni tekstualne datoteke +Comment[ca]=Edita fitxers de text +Comment[cs]=Úprava textových souborů +Comment[cy]=Golygu ffeiliau testun +Comment[da]=Rediger tekstfiler +Comment[de]=Textdateien bearbeiten +Comment[el]=Επεξεργασία αρχείων κειμένου +Comment[en_CA]=Edit text files +Comment[en_GB]=Edit text files +Comment[eo]=Redakti tekstajn dosierojn +Comment[es]=Edita archivos de texto +Comment[et]=Redigeeri tekstifaile +Comment[eu]=Editatu testu-fitxategiak +Comment[fa]=ویرایش پروندههای متنی +Comment[fi]=Muokkaa tekstitiedostoja +Comment[fr]=Éditer des fichiers textes +Comment[ga]=Eagar comhad Téacs +Comment[gu]=લખાણ ફાઇલોમાં ફેરફાર કરો +Comment[he]=ערוך קבצי טקסט +Comment[hi]=पाठ फ़ाइलें संपादित करें +Comment[hr]=Uređivanje tekstualne datoteke +Comment[hu]=Szövegfájlok szerkesztése +Comment[id]=Edit file teks +Comment[is]=Vinna með textaskrár +Comment[it]=Modifica file di testo +Comment[ja]=テキストファイルを編集します +Comment[kn]=ಪಠ್ಯ ಕಡತಗಳನ್ನು ಸಂಪಾದಿಸು +Comment[ko]=텍스트 파일을 편집합니다 +Comment[lt]=Redaguoti tekstines bylas +Comment[lv]=Rediģēt teksta failus +Comment[mk]=Уреди текстуални фајлови +Comment[ml]=വാചക രചനകള് തിരുത്തുക +Comment[mn]=Текст файл боловсруулах +Comment[mr]=गद्य फाइल संपादित करा +Comment[ms]=Edit fail teks +Comment[nb]=Rediger tekstfiler +Comment[ne]=पाठ फाइललाई संशोधन गर्नुहोस् +Comment[nl]=Tekstbestanden bewerken +Comment[nn]=Rediger tekstfiler +Comment[no]=Rediger tekstfiler +Comment[or]=ପାଠ୍ଯ ଫାଇଲଗୁଡ଼ିକୁ ସମ୍ପାଦନ କରନ୍ତୁ +Comment[pa]=ਪਾਠ ਫਾਇਲਾਂ ਸੰਪਾਦਨ +Comment[pl]=Edytuj pliki tekstowe +Comment[pt]=Editar ficheiros de texto +Comment[pt_BR]=Edite arquivos de texto +Comment[ro]=Editare fişiere text +Comment[ru]=Редактор текстовых файлов +Comment[sk]=Úprava textových súborov +Comment[sl]=Urejanje datotek z besedili +Comment[sq]=Përpuno files teksti +Comment[sr]=Измени текстуалне датотеке +Comment[sr@Latn]=Izmeni tekstualne datoteke +Comment[sv]=Redigera textfiler +Comment[ta]=உரை கோப்புகளை தொகுக்கவும் +Comment[th]=แก้ไขแฟ้มข้อความ +Comment[tk]=Metin faýllary editle +Comment[tr]=Metin dosyalarını düzenle +Comment[uk]=Редактор текстових файлів +Comment[vi]=Soạn thảo tập tin văn bản +Comment[wa]=Asspougnî des fitchîs tecses +Comment[zh_CN]=编辑文本文件 +Comment[zh_TW]=編輯文字檔 +TryExec=gvim +Exec=gvim -f %F +Terminal=false +Type=Application +# Translators: Search terms to find this application. Do NOT change the semicolons! The list MUST also end with a semicolon! +Keywords=Text;editor; +# Translators: This is the Icon file name. Do NOT translate +Icon=gvim +Categories=Utility;TextEditor; +StartupNotify=true +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; diff --git a/src/po/vim.desktop.in b/src/po/vim.desktop.in new file mode 100644 index 000000000..8e03b325b --- /dev/null +++ b/src/po/vim.desktop.in @@ -0,0 +1,94 @@ +# The vim.desktop file is generated by src/po/Makefile, do NOT edit. +# Edit the src/po/vim.desktop.in file instead. +[Desktop Entry] +# Translators: This is the Application Name used in the Vim desktop file +Name=Vim +# Translators: This is the Generic Application Name used in the Vim desktop file +GenericName=Text Editor +# Translators: This is the comment used in the Vim desktop file +Comment=Edit text files +# The translations should come from the po file. Leave them here for now, they will +# be overwritten by the po file when generating the desktop.file. +GenericName[da]=Teksteditor +GenericName[de]=Texteditor +GenericName[pl]=Edytor tekstu +GenericName[is]=Ritvinnsluforrit +Comment[af]=Redigeer tekslêers +Comment[am]=የጽሑፍ ፋይሎች ያስተካክሉ +Comment[ar]=حرّر ملفات نصية +Comment[az]=Mətn fayllarını redaktə edin +Comment[be]=Рэдагаваньне тэкставых файлаў +Comment[bg]=Редактиране на текстови файлове +Comment[bn]=টেক্স্ট ফাইল এডিট করুন +Comment[bs]=Izmijeni tekstualne datoteke +Comment[ca]=Edita fitxers de text +Comment[cs]=Úprava textových souborů +Comment[cy]=Golygu ffeiliau testun +Comment[da]=Rediger tekstfiler +Comment[de]=Textdateien bearbeiten +Comment[el]=Επεξεργασία αρχείων κειμένου +Comment[en_CA]=Edit text files +Comment[en_GB]=Edit text files +Comment[es]=Edita archivos de texto +Comment[et]=Redigeeri tekstifaile +Comment[eu]=Editatu testu-fitxategiak +Comment[fa]=ویرایش پروندههای متنی +Comment[fi]=Muokkaa tekstitiedostoja +Comment[fr]=Édite des fichiers texte +Comment[ga]=Eagar comhad Téacs +Comment[gu]=લખાણ ફાઇલોમાં ફેરફાર કરો +Comment[he]=ערוך קבצי טקסט +Comment[hi]=पाठ फ़ाइलें संपादित करें +Comment[hr]=Uređivanje tekstualne datoteke +Comment[hu]=Szövegfájlok szerkesztése +Comment[id]=Edit file teks +Comment[is]=Vinna með textaskrár +Comment[it]=Modifica file di testo +Comment[ja]=テキストファイルを編集します +Comment[kn]=ಪಠ್ಯ ಕಡತಗಳನ್ನು ಸಂಪಾದಿಸು +Comment[ko]=텍스트 파일을 편집합니다 +Comment[lt]=Redaguoti tekstines bylas +Comment[lv]=Rediģēt teksta failus +Comment[mk]=Уреди текстуални фајлови +Comment[ml]=വാചക രചനകള് തിരുത്തുക +Comment[mn]=Текст файл боловсруулах +Comment[mr]=गद्य फाइल संपादित करा +Comment[ms]=Edit fail teks +Comment[nb]=Rediger tekstfiler +Comment[ne]=पाठ फाइललाई संशोधन गर्नुहोस् +Comment[nl]=Tekstbestanden bewerken +Comment[nn]=Rediger tekstfiler +Comment[no]=Rediger tekstfiler +Comment[or]=ପାଠ୍ଯ ଫାଇଲଗୁଡ଼ିକୁ ସମ୍ପାଦନ କରନ୍ତୁ +Comment[pa]=ਪਾਠ ਫਾਇਲਾਂ ਸੰਪਾਦਨ +Comment[pl]=Edytuj pliki tekstowe +Comment[pt]=Editar ficheiros de texto +Comment[pt_BR]=Edite arquivos de texto +Comment[ro]=Editare fişiere text +Comment[ru]=Редактор текстовых файлов +Comment[sk]=Úprava textových súborov +Comment[sl]=Urejanje datotek z besedili +Comment[sq]=Përpuno files teksti +Comment[sr]=Измени текстуалне датотеке +Comment[sr@Latn]=Izmeni tekstualne datoteke +Comment[sv]=Redigera textfiler +Comment[ta]=உரை கோப்புகளை தொகுக்கவும் +Comment[th]=แก้ไขแฟ้มข้อความ +Comment[tk]=Metin faýllary editle +Comment[tr]=Metin dosyalarını düzenle +Comment[uk]=Редактор текстових файлів +Comment[vi]=Soạn thảo tập tin văn bản +Comment[wa]=Asspougnî des fitchîs tecses +Comment[zh_CN]=编辑文本文件 +Comment[zh_TW]=編輯文字檔 +TryExec=vim +Exec=vim %F +Terminal=true +Type=Application +# Translators: Search terms to find this application. Do NOT change the semicolons! The list MUST also end with a semicolon! +Keywords=Text;editor; +# Translators: This is the Icon file name. Do NOT translate +Icon=gvim +Categories=Utility;TextEditor; +StartupNotify=false +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; |