Permalink
Browse files

Replace plugin_lang_get with new gettext approach

The replacement of lang_get() calls for strings in the 'core' text
domain has mostly been completed. Plugins were calling a separate
function plugin_lang_get() that told lang_api (now deprecated) to use
the plugin-specific "lang" directory for translations specific to
plugins.

This new approach loads a text domain specific to each plugin prior to
plugin initialisation. Just as MantisBT core has a "locale" directory,
each plugin also needs a "locale" directory.

plugin_lang_get(...) has been completely removed and d___(...) and
dn_(...) should be used instead. This new syntax may change to something
simler and easier to handle in the near future.

Commit: d956d32
  • Loading branch information...
1 parent 24745db commit 5bf9b2e0229031abf4878edda1f40ea1ec7c6f2f @grangeway grangeway committed Jan 24, 2013
Showing with 0 additions and 5,263 deletions.
  1. +0 −38 plugins/MantisCoreFormatting/lang/strings_afrikaans.txt
  2. +0 −36 plugins/MantisCoreFormatting/lang/strings_arabic.txt
  3. +0 −40 plugins/MantisCoreFormatting/lang/strings_breton.txt
  4. +0 −41 plugins/MantisCoreFormatting/lang/strings_catalan.txt
  5. +0 −40 plugins/MantisCoreFormatting/lang/strings_dutch.txt
  6. +0 −39 plugins/MantisCoreFormatting/lang/strings_english.txt
  7. +0 −36 plugins/MantisCoreFormatting/lang/strings_finnish.txt
  8. +0 −41 plugins/MantisCoreFormatting/lang/strings_french.txt
  9. +0 −40 plugins/MantisCoreFormatting/lang/strings_galician.txt
  10. +0 −41 plugins/MantisCoreFormatting/lang/strings_german.txt
  11. +0 −32 plugins/MantisCoreFormatting/lang/strings_greek.txt
  12. +0 −39 plugins/MantisCoreFormatting/lang/strings_hebrew.txt
  13. +0 −41 plugins/MantisCoreFormatting/lang/strings_hungarian.txt
  14. +0 −41 plugins/MantisCoreFormatting/lang/strings_japanese.txt
  15. +0 −40 plugins/MantisCoreFormatting/lang/strings_macedonian.txt
  16. +0 −39 plugins/MantisCoreFormatting/lang/strings_norwegian_bokmal.txt
  17. +0 −40 plugins/MantisCoreFormatting/lang/strings_occitan.txt
  18. +0 −39 plugins/MantisCoreFormatting/lang/strings_portuguese_brazil.txt
  19. +0 −40 plugins/MantisCoreFormatting/lang/strings_portuguese_standard.txt
  20. +0 −34 plugins/MantisCoreFormatting/lang/strings_qqq.txt
  21. +0 −41 plugins/MantisCoreFormatting/lang/strings_ripoarisch.txt
  22. +0 −41 plugins/MantisCoreFormatting/lang/strings_russian.txt
  23. +0 −39 plugins/MantisCoreFormatting/lang/strings_slovak.txt
  24. +0 −41 plugins/MantisCoreFormatting/lang/strings_spanish.txt
  25. +0 −40 plugins/MantisCoreFormatting/lang/strings_swissgerman.txt
  26. +0 −91 plugins/MantisGraph/lang/strings_arabic.txt
  27. +0 −82 plugins/MantisGraph/lang/strings_arabicegyptianspoken.txt
  28. +0 −97 plugins/MantisGraph/lang/strings_breton.txt
  29. +0 −67 plugins/MantisGraph/lang/strings_bulgarian.txt
  30. +0 −98 plugins/MantisGraph/lang/strings_catalan.txt
  31. +0 −68 plugins/MantisGraph/lang/strings_chinese_simplified.txt
  32. +0 −52 plugins/MantisGraph/lang/strings_chinese_traditional.txt
  33. +0 −76 plugins/MantisGraph/lang/strings_czech.txt
  34. +0 −51 plugins/MantisGraph/lang/strings_danish.txt
  35. +0 −97 plugins/MantisGraph/lang/strings_dutch.txt
  36. +0 −96 plugins/MantisGraph/lang/strings_english.txt
  37. +0 −63 plugins/MantisGraph/lang/strings_estonian.txt
  38. +0 −72 plugins/MantisGraph/lang/strings_finnish.txt
  39. +0 −99 plugins/MantisGraph/lang/strings_french.txt
  40. +0 −97 plugins/MantisGraph/lang/strings_galician.txt
  41. +0 −99 plugins/MantisGraph/lang/strings_german.txt
  42. +0 −47 plugins/MantisGraph/lang/strings_greek.txt
  43. +0 −72 plugins/MantisGraph/lang/strings_hebrew.txt
  44. +0 −97 plugins/MantisGraph/lang/strings_hungarian.txt
  45. +0 −52 plugins/MantisGraph/lang/strings_icelandic.txt
  46. +0 −72 plugins/MantisGraph/lang/strings_italian.txt
  47. +0 −97 plugins/MantisGraph/lang/strings_japanese.txt
  48. +0 −52 plugins/MantisGraph/lang/strings_korean.txt
  49. +0 −62 plugins/MantisGraph/lang/strings_lithuanian.txt
  50. +0 −97 plugins/MantisGraph/lang/strings_macedonian.txt
  51. +0 −92 plugins/MantisGraph/lang/strings_norwegian_bokmal.txt
  52. +0 −49 plugins/MantisGraph/lang/strings_norwegian_nynorsk.txt
  53. +0 −97 plugins/MantisGraph/lang/strings_occitan.txt
  54. +0 −72 plugins/MantisGraph/lang/strings_polish.txt
  55. +0 −81 plugins/MantisGraph/lang/strings_portuguese_brazil.txt
  56. +0 −97 plugins/MantisGraph/lang/strings_portuguese_standard.txt
  57. +0 −34 plugins/MantisGraph/lang/strings_qqq.txt
  58. +0 −97 plugins/MantisGraph/lang/strings_ripoarisch.txt
  59. +0 −50 plugins/MantisGraph/lang/strings_romanian.txt
  60. +0 −99 plugins/MantisGraph/lang/strings_russian.txt
  61. +0 −38 plugins/MantisGraph/lang/strings_serbian.txt
  62. +0 −93 plugins/MantisGraph/lang/strings_slovak.txt
  63. +0 −100 plugins/MantisGraph/lang/strings_spanish.txt
  64. +0 −72 plugins/MantisGraph/lang/strings_swedish.txt
  65. +0 −97 plugins/MantisGraph/lang/strings_swissgerman.txt
  66. +0 −72 plugins/MantisGraph/lang/strings_tagalog.txt
  67. +0 −52 plugins/MantisGraph/lang/strings_ukrainian.txt
  68. +0 −52 plugins/MantisGraph/lang/strings_urdu.txt
  69. +0 −41 plugins/MantisGraph/lang/strings_volapuk.txt
  70. +0 −39 plugins/XmlImportExport/lang/strings_arabic.txt
  71. +0 −48 plugins/XmlImportExport/lang/strings_breton.txt
  72. +0 −49 plugins/XmlImportExport/lang/strings_catalan.txt
  73. +0 −48 plugins/XmlImportExport/lang/strings_dutch.txt
  74. +0 −53 plugins/XmlImportExport/lang/strings_english.txt
  75. +0 −40 plugins/XmlImportExport/lang/strings_finnish.txt
  76. +0 −48 plugins/XmlImportExport/lang/strings_french.txt
  77. +0 −48 plugins/XmlImportExport/lang/strings_galician.txt
  78. +0 −49 plugins/XmlImportExport/lang/strings_german.txt
  79. +0 −48 plugins/XmlImportExport/lang/strings_hungarian.txt
  80. +0 −48 plugins/XmlImportExport/lang/strings_japanese.txt
  81. +0 −48 plugins/XmlImportExport/lang/strings_macedonian.txt
  82. +0 −41 plugins/XmlImportExport/lang/strings_norwegian_bokmal.txt
  83. +0 −48 plugins/XmlImportExport/lang/strings_occitan.txt
  84. +0 −48 plugins/XmlImportExport/lang/strings_portuguese_standard.txt
  85. +0 −48 plugins/XmlImportExport/lang/strings_ripoarisch.txt
  86. +0 −48 plugins/XmlImportExport/lang/strings_russian.txt
  87. +0 −48 plugins/XmlImportExport/lang/strings_slovak.txt
  88. +0 −50 plugins/XmlImportExport/lang/strings_spanish.txt
  89. +0 −49 plugins/XmlImportExport/lang/strings_swissgerman.txt
@@ -1,38 +0,0 @@
-<?php
-/** MantisBT - a php based bugtracking system
- *
- * Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
- * Copyright 2002 - 2013 MantisBT Team - mantisbt-dev@lists.sourceforge.net
- *
- * MantisBT is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * MantisBT is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/** Afrikaans (Afrikaans)
- *
- * See the qqq 'language' for message documentation incl. usage of parameters
- * To improve a translation please visit http://translatewiki.net
- *
- * @ingroup Language
- * @file
- *
- * @author Naudefj
- */
-
-$s_plugin_format_title = 'MantisBT-formatering';
-$s_plugin_format_description = 'Amptelike teksverwerkings- en formaterings-plugin.';
-$s_plugin_format_config = 'Voorkeure';
-$s_plugin_format_process_text = 'Teksverwerking';
-$s_plugin_format_process_urls = 'URL-verwerking';
-$s_plugin_format_enabled = 'Aan';
-$s_plugin_format_disabled = 'Af';
@@ -1,36 +0,0 @@
-<?php
-/** MantisBT - a php based bugtracking system
- *
- * Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
- * Copyright 2002 - 2013 MantisBT Team - mantisbt-dev@lists.sourceforge.net
- *
- * MantisBT is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * MantisBT is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/** Arabic (العربية)
- *
- * See the qqq 'language' for message documentation incl. usage of parameters
- * To improve a translation please visit http://translatewiki.net
- *
- * @ingroup Language
- * @file
- *
- * @author Meno25
- */
-
-$s_plugin_format_config = 'ضبط';
-$s_plugin_format_process_text = 'معالجة النص';
-$s_plugin_format_process_urls = 'معالجة المسار';
-$s_plugin_format_enabled = 'مفعل';
-$s_plugin_format_disabled = 'معطل';
@@ -1,40 +0,0 @@
-<?php
-/** MantisBT - a php based bugtracking system
- *
- * Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
- * Copyright 2002 - 2013 MantisBT Team - mantisbt-dev@lists.sourceforge.net
- *
- * MantisBT is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * MantisBT is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/** Breton (Brezhoneg)
- *
- * See the qqq 'language' for message documentation incl. usage of parameters
- * To improve a translation please visit http://translatewiki.net
- *
- * @ingroup Language
- * @file
- *
- * @author Fohanno
- */
-
-$s_plugin_format_title = 'Furmadiñ MantisBT';
-$s_plugin_format_description = 'Lugant ofisiel evit tretañ ha furmaozañ testennoù.';
-$s_plugin_format_config = 'Kefluniadur';
-$s_plugin_format_process_text = 'Skridtreterezh';
-$s_plugin_format_process_text_warning_notice = 'Arabat diweredekaat hep gouzout ar pezh emaoc\'h oc\'h ober. Pa vez diweredekaet e c\'hall bezañ tagadennoù « cross-site scripting » (XSS).';
-$s_plugin_format_process_urls = 'Tretañ an URL';
-$s_plugin_format_process_buglinks = 'Liammoù MantisBT (draen / notenn diwar-benn un draen)';
-$s_plugin_format_enabled = 'Gweredekaet';
-$s_plugin_format_disabled = 'Diweredekaet';
@@ -1,41 +0,0 @@
-<?php
-/** MantisBT - a php based bugtracking system
- *
- * Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
- * Copyright 2002 - 2013 MantisBT Team - mantisbt-dev@lists.sourceforge.net
- *
- * MantisBT is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * MantisBT is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/** Catalan (Català)
- *
- * See the qqq 'language' for message documentation incl. usage of parameters
- * To improve a translation please visit http://translatewiki.net
- *
- * @ingroup Language
- * @file
- *
- * @author Bernat
- * @author Paucabot
- */
-
-$s_plugin_format_title = 'Formatació de MantisBT';
-$s_plugin_format_description = 'Processament de text i formatació de plugins oficials.';
-$s_plugin_format_config = 'Configuració';
-$s_plugin_format_process_text = 'Processament de Text';
-$s_plugin_format_process_text_warning_notice = 'No ho deshabiliti si no està realment segur del què està fent. En estat deshabilitat hi poden haver atacs cross site scripting (XSS).';
-$s_plugin_format_process_urls = 'Processament de la URL';
-$s_plugin_format_process_buglinks = 'Enllaços MantisBT (Incidències/Notes d\'Incidències)';
-$s_plugin_format_enabled = 'Habilitat';
-$s_plugin_format_disabled = 'Deshabilitat';
@@ -1,40 +0,0 @@
-<?php
-/** MantisBT - a php based bugtracking system
- *
- * Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
- * Copyright 2002 - 2013 MantisBT Team - mantisbt-dev@lists.sourceforge.net
- *
- * MantisBT is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * MantisBT is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/** Dutch (Nederlands)
- *
- * See the qqq 'language' for message documentation incl. usage of parameters
- * To improve a translation please visit http://translatewiki.net
- *
- * @ingroup Language
- * @file
- *
- * @author Siebrand
- */
-
-$s_plugin_format_title = 'MantisBT-opmaak';
-$s_plugin_format_description = 'Officiële tekstverwerkings- en opmaakplugin.';
-$s_plugin_format_config = 'Instellingen';
-$s_plugin_format_process_text = 'Tekstverwerking';
-$s_plugin_format_process_text_warning_notice = 'Niet uitschakelen tenzij u precies weet wat u doet. Als deze plugin is uitgeschakeld, zijn "cross site scriping"-aanvallen (XSS) mogelijk.';
-$s_plugin_format_process_urls = 'URL-verwerking';
-$s_plugin_format_process_buglinks = 'MantisBT-verwijzingen (melding/opmerking)';
-$s_plugin_format_enabled = 'Aan';
-$s_plugin_format_disabled = 'Uit';
@@ -1,39 +0,0 @@
-<?php
-/** MantisBT - a php based bugtracking system
- *
- * Copyright 2002 - 2013 MantisBT Team - mantisbt-dev@lists.sourceforge.net
- *
- * MantisBT is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * MantisBT is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/** English (English)
- *
- * See the qqq 'language' for message documentation incl. usage of parameters
- * To improve a translation please visit http://translatewiki.net
- *
- * @ingroup Language
- * @file
- *
- */
-
-$s_plugin_format_title = 'MantisBT Formatting';
-$s_plugin_format_description = 'Official text processing and formatting plugin.';
-
-$s_plugin_format_config = 'Configuration';
-$s_plugin_format_process_text = 'Text Processing';
-$s_plugin_format_process_text_warning_notice = 'Do not turn off unless you really know what you\'re doing. In the off state, cross site scripting (XSS) attacks are possible.';
-$s_plugin_format_process_urls = 'URL Processing';
-$s_plugin_format_process_buglinks = 'MantisBT Links ( Issue/Issuenote )';
-$s_plugin_format_enabled = 'On';
-$s_plugin_format_disabled = 'Off';
@@ -1,36 +0,0 @@
-<?php
-/** MantisBT - a php based bugtracking system
- *
- * Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
- * Copyright 2002 - 2013 MantisBT Team - mantisbt-dev@lists.sourceforge.net
- *
- * MantisBT is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * MantisBT is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/** Finnish (Suomi)
- *
- * See the qqq 'language' for message documentation incl. usage of parameters
- * To improve a translation please visit http://translatewiki.net
- *
- * @ingroup Language
- * @file
- *
- * @author Centerlink
- */
-
-$s_plugin_format_description = 'Virallinen tekstinkäsittely- ja muotoiluliitännäinen.';
-$s_plugin_format_process_text = 'Tekstinkäsittely';
-$s_plugin_format_process_urls = 'Verkko-osoitteen käsittely';
-$s_plugin_format_enabled = 'Käytössä';
-$s_plugin_format_disabled = 'Pois käytöstä';
@@ -1,41 +0,0 @@
-<?php
-/** MantisBT - a php based bugtracking system
- *
- * Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
- * Copyright 2002 - 2013 MantisBT Team - mantisbt-dev@lists.sourceforge.net
- *
- * MantisBT is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * MantisBT is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/** French (Français)
- *
- * See the qqq 'language' for message documentation incl. usage of parameters
- * To improve a translation please visit http://translatewiki.net
- *
- * @ingroup Language
- * @file
- *
- * @author Dolmen
- * @author IAlex
- */
-
-$s_plugin_format_title = 'Formatage de MantisBT';
-$s_plugin_format_description = 'Plugin officiel de traitement et de formatage du texte.';
-$s_plugin_format_config = 'Configuration';
-$s_plugin_format_process_text = 'Traitement du texte';
-$s_plugin_format_process_text_warning_notice = 'Ne désactivez pas sans savoir ce que vous faites. Dans l\'état désactivé, des attaques de type « cross-site scripting » (XSS) sont possibles.';
-$s_plugin_format_process_urls = 'Traitement des URL';
-$s_plugin_format_process_buglinks = 'Liens MantisBT (bug / note sur un bug)';
-$s_plugin_format_enabled = 'Activé';
-$s_plugin_format_disabled = 'Désactivé';
@@ -1,40 +0,0 @@
-<?php
-/** MantisBT - a php based bugtracking system
- *
- * Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
- * Copyright 2002 - 2013 MantisBT Team - mantisbt-dev@lists.sourceforge.net
- *
- * MantisBT is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * MantisBT is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
- */
-
-/** Galician (Galego)
- *
- * See the qqq 'language' for message documentation incl. usage of parameters
- * To improve a translation please visit http://translatewiki.net
- *
- * @ingroup Language
- * @file
- *
- * @author Toliño
- */
-
-$s_plugin_format_title = 'Formato de MantisBT';
-$s_plugin_format_description = 'Texto oficial do complemento de procesamento e formato.';
-$s_plugin_format_config = 'Configuración';
-$s_plugin_format_process_text = 'Procesamento de texto';
-$s_plugin_format_process_text_warning_notice = 'Non desactive isto a menos que realmente saiba o que está a facer. No estado desactivado, é posible que haxa ataques á escritura (XSS) da páxina.';
-$s_plugin_format_process_urls = 'Procesamento de URL';
-$s_plugin_format_process_buglinks = 'Ligazóns de MantisBT (problema/notas do problema)';
-$s_plugin_format_enabled = 'Activado';
-$s_plugin_format_disabled = 'Desactivado';
Oops, something went wrong.

0 comments on commit 5bf9b2e

Please sign in to comment.