mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 16:44:17 +02:00
Add Hindi (hi) language translation file for Adminer
This commit adds a new Hindi (hi) translation file for Adminer, based on the existing Bengali (bn) language file. All interface strings have been translated from Bengali to Hindi to make Adminer more accessible to Hindi-speaking users. The structure of the file follows the format used in other language files within the repository. The translations were carefully reviewed to ensure accuracy, readability, and consistency with the context of the Adminer application. File added: - lang/hi.inc.php Looking forward to your feedback and happy to make any improvements as needed!
This commit is contained in:
committed by
Jakub Vrana
parent
82c544514d
commit
a04823f4c4
2
lang.php
2
lang.php
@@ -53,7 +53,7 @@ function update_translations($lang, $messages, $filename, $pattern, $tabs = "\t"
|
||||
$start = $match[2][1];
|
||||
preg_match_all("~^(\\s*(?:// [^'].*\\s+)?)(?:// )?(('(?:[^\\\\']+|\\\\.)*') => (.*[^,\n])),?~m", $match[2][0], $matches, PREG_SET_ORDER | PREG_OFFSET_CAPTURE);
|
||||
$s = "";
|
||||
$fullstop = ($lang == "bn" ? '।' : (preg_match('~^(ja|zh)~', $lang) ? '。' : ($lang == 'he' ? '[^.]' : '\.')));
|
||||
$fullstop = ($lang == 'bn' || $lang == 'hi' ? '।' : (preg_match('~^(ja|zh)~', $lang) ? '。' : ($lang == 'he' ? '[^.]' : '\.')));
|
||||
foreach ($matches as $match) {
|
||||
list(, list($indent), list($line, $offset), list($en), list($translation)) = $match;
|
||||
if (isset($messages[$en])) {
|
||||
|
Reference in New Issue
Block a user