translation issues

6 years ago
4 years ago


how could i translate these "yes" and "no"?

also there should be used language tags too: [code] system/views/traq.templates/projectlist.php: <small class="quick_nav"><a href="<?php echo $uri->anchor($project['slug'],'roadmap')?>">Roadmap</a> | <a href="<?php echo $uri->anchor($project['slug'],'tickets')?>">All Tickets</a> | <a href="<?php echo $uri->anchor($project['slug'],'timeline')?>">Timeline</a> <?php ($hook = FishHook::hook('template_projectlist_quick_nav')) ? eval($hook) : false; ?></small> [/code]

also Traq shouldnt read all files in system/locale directory, only "*.php". here is screenshot of Traq reading vim's .swp file:


Ticket History

6 years ago by Devon Hazelett

This is simple, yet complicated if you are not a developer. The default English yes and no is set in the enus.php file, so in your Russian file you just need to find or add: $lang['yes'] = "Russian translated yes"; $lang['no'] = "Russian translated no";

I'm looking at the enus file and I see yes/no on lines 332/333.

6 years ago by Devon Hazelett

  • Added attachment settings.php

I found the problem, for the no yes, admincp/settings.php was missing the proper echo l('yes/no'), on lines 96, 96, 135, 136. Im only attaching the settings.php file [read why =>] I also identified the issue with the header links, it is a little more difficult so i will leave that one up to jack on how he wants to do it, i found two ways of solving the issues. in admincp/common.php the function head(); line 154 i added <?php echo l(strtolower($link['title']))?>, but also had to add a lower case style $lang['wiki'] = 'Wiki'; in enus.php.

of the other method was to keep <?php echo l(strtolower($link['title']))?>. And in system/common.php function l(); line 235, change: str_replace(); to str_ireplace();

optionally changing line 228 to: @if(!isset($lang[$string])) return ucwords($string);@

6 years ago by vk

ok good, and what about Traq reading "" files in system/locale, not ".php"?

6 years ago by vk

oh my, auto-BBcodes changed my *s to bold text. trying to escape...

what about Traq reading ā€œ*ā€œ files in system/locale, not ā€œ*.phpā€?

6 years ago by Jack

  • Changed Milestone from 3.0 to 2.3.2

6 years ago by Jack

  • Closed ticket as Fixed