View Issue Details

IDProjectCategoryView StatusLast Update
0028648mantisbtlocalizationpublic2023-10-31 16:32
Reporterajaysajay Assigned Todregad  
Status closedResolutionfixed 
Product Version2.25.1 
Target Version2.26.0Fixed in Version2.26.0 
Summary0028648: New Hindi Language Translation

I started working on language Hindi translation and have completed about 65% work (and still working). I'm able to see Hindi translation files committed from translatewiki to github repository.
Hindi is a new language for MantisBT and it does not appear in Language dropdown in User Preferences, so it need to be added. Since I've little idea in coding and specifically including a new language in existing language list in code, I seek help in adding Hindi to the list of language.

TagsNo tags attached.


related to 0028860 closeddregad Incorrectly configured serbo-croatian (sh) language 




2021-05-29 17:28

developer   ~0065583

@Nikerabbit @siebrand please change the name of the Hindi translation files from strings_hi.txt to strings_hindi.txt.



2021-05-30 05:47

developer   ~0065585

@atrol I posted on TW as well, as I'm not sure these guys respond to mentions here.

Registering the new language in Mantis requires:

diff --git a/config_defaults_inc.php b/config_defaults_inc.php
index 043d04350..f981302fd 100644
--- a/config_defaults_inc.php
+++ b/config_defaults_inc.php
@@ -901,6 +901,7 @@ $g_language_choices_arr = array(
+   'hindi',
@@ -965,6 +966,7 @@ $g_language_auto_map = array(
    'gl' => 'galician',
    'de-de, de-at, de-ch, de' => 'german',
    'he' => 'hebrew',
+   'hi' => 'hindi',
    'hu' => 'hungarian',
    'is' => 'icelandic',
    'ia' => 'interlingua',

@ajaysajay you can apply the above changes, and if you temporarily replace hindi by hi, it should let you review your translations in situ.



2021-05-30 22:45

reporter   ~0065586

I'll carry temp changes to review translations and progress. Thank you @atrol @dregad.



2021-05-31 04:41

developer   ~0065588

The files are now renamed.

Related Changesets

MantisBT: master d6cad9f3

2021-05-31 00:06

Details Diff
Localisation updates from Affected Issues
mod - lang/strings_belarusian_tarask.txt Diff File
mod - lang/strings_hebrew.txt Diff File
add - lang/strings_hindi.txt Diff File
mod - lang/strings_interlingua.txt Diff File
mod - lang/strings_japanese.txt Diff File
mod - lang/strings_slovene.txt Diff File
add - plugins/Gravatar/lang/strings_hindi.txt Diff File
add - plugins/MantisCoreFormatting/lang/strings_hindi.txt Diff File
add - plugins/MantisGraph/lang/strings_hindi.txt Diff File
add - plugins/XmlImportExport/lang/strings_hindi.txt Diff File

MantisBT: master c1d2fb7f

2021-05-31 09:02


Details Diff
New language: hindi

Fixes 0028648
Affected Issues
mod - config_defaults_inc.php Diff File