Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to localize this file?
sadkin
New
Hello.
The first thing I'm sorry for my English.
Such a question.
How to locate the passage where to find this code?
searched everywhere, found "applications\vanilla\views\discussion\announce.php" but editing it changed nothing.
Help please.
Tagged:
0
Best Answer
-
peregrine MVP
everything surrounded by a T can be translated. see tutorial for more.
'0' => '@'.T("Don't announce.") ); if (C('Vanilla.Categories.Use')) { $Result = array_replace($Result, array( '2' => '@'.sprintf(T('In <b>%s.</b>'), T('the category')), '1' => '@'.sprintf(sprintf(T('In <b>%s</b> and recent discussions.'), T('the category'))), )); } else { $Result = array_replace($Result, array( '1' => '@'.T('In recent discussions.'), )); }
e.g.
$Definition["In <b>%s</b> and recent discussions."] = "bee-bop-tutorial <b>%s</b> and boop.";
the idea is - either look in code, search in notepad++, use grep, or the program in the link, or locale developer.
not sure - why it is so difficult for everyone.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
5
Answers
everything surrounded by a T can be translated. see tutorial for more.
https://github.com/vanilla/vanilla/blob/master/applications/vanilla/controllers/class.postcontroller.php#L69
e.g.
$Definition["In <b>%s</b> and recent discussions."] = "bee-bop-tutorial <b>%s</b> and boop.";
see: http://vanillaforums.org/discussion/26597/tutorial-how-to-change-wording-how-to-change-text-how-to-change-language-how-to-change-locale
the idea is - either look in code, search in notepad++, use grep, or the program in the link, or locale developer.
not sure - why it is so difficult for everyone.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Oooooooooh good
Thank you very much
Announcements Announcement Don't Announce Translation.
so someone may be able to find if they search.
next time post in Localization category. hope there isn't a next time.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.