View Issue Details

IDProjectCategoryView StatusLast Update
0028648mantisbtlocalizationpublic2021-06-27 05:12
Reporterajaysajay Assigned Todregad  
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Product Version2.25.1 
Target Version2.26.0Fixed in Version2.26.0 
Summary0028648: New Hindi Language Translation
Description

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.

Relationships

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

Activities

atrol

atrol

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.

dregad

dregad

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.
https://translatewiki.net/wiki/Thread:Support/Incorrect_file_name_for_MantisBT_-_hindi_translation

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(
    'german',
    'greek',
    'hebrew',
+   'hindi',
    'hungarian',
    'icelandic',
    'interlingua',
@@ -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.

ajaysajay

ajaysajay

2021-05-30 22:45

reporter   ~0065586

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

Nikerabbit

Nikerabbit

2021-05-31 04:41

developer   ~0065588

The files are now renamed.

Related Changesets

MantisBT: master d6cad9f3

2021-05-31 04:06:42

translatewiki.net

Details Diff
Localisation updates from https://translatewiki.net. Affected Issues
0028648
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 13:02:39

dregad

Details Diff
New language: hindi

Fixes 0028648
Affected Issues
0028648
mod - config_defaults_inc.php Diff File