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.
Translateng homepage of dashboard! where is it's files?

Answers
I think you can find it in
plugins\GettingStarted\default.php
and
plugins\VanillaStats
If you have Windows, I would recommend AgentRansack or Grep.
This allows you to search Vanilla for key words or phrases.
I'm using Ubuntu. grep is available on linux, too -> toward learning search options! tnx to @whu606.
I checked the file you mentioned;
Why it's not written as standard format for translating=>
T( )
The page: http://YOURDOMAIN/index.php?p=/dashboard/settings has 6 paragraphs and a head-title, but just 4th part is usingT( )
.I tried for that 4 parts in this form:
Then I saved this codes into a file(gettingstarted.php) and placed in locale pack into
/vanilla/locales/translationpack/
. But it doesn't work?See codes of
/plugins/GettingStarted/default.php
.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
also clear your cache when changing locale and definitions
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
qwenty wrote:
peregrine said:
Didn't work!
It doesn't need! I refresh firefox by Ctrl+F5, which refreshes the page from scratch.
Bump!
refresh the server cache by deleting all the .ini files here.
/vanilla/cache
if its not already in the local documetation on the wiki and it works for you, maybe you could append it to the wiki documentation, how you solved it. (and please don't ask where the wiki is?, because if you do ... it will drive me to the edge.)
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
The answer is oversight.
This plug-in is benign so you can mod it, to use. You could even send a pull request to the core. I'm sure they would appreciate it.
You can add the value to the standard definition file.
grep is your friend.
And I will stand by that edge with peregrine... holding him back, because we've got some more stuff to solve! :-)
There was an error rendering this rich post.
You could even send a pull request to the core. I'm sure they would appreciate it. >
can you explain what "pull request" means please?
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
http://help.github.com/send-pull-requests/
grep is your friend.
Great! Worked
It was because of those damn ".ini" files. Now, I placed the translated file into
/locales/translationpack
; It's working.Answer:
tnx to @x00
Solved. I added
T( )
manually.for Ex:
T("<h1>Here's how to get started:</h1>")
=>
thx @xoo sounds like a great idea for qwenty to follow through on....
http://help.github.com/send-pull-requests/. .... assuming its not a snatch and run...
If it was a snake it would have bit you. - adding to wiki????
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
You can do
grep is your friend.
@whu606 @x00 , @peregrine
both problems are solved now, Thank you very much.
It's better that one of you (the stuff) reports modifications via github. If not, I'll do that soon!
How should I translate the below code which is into:
models/class.permissionmodel.php
?$JunctionTable, $JunctionTable -> ??
$Definition['Permission.'] = '???';
What about:
T('InviteErrorPermission', T('ErrorPermission'))
T('Permission.'.$JunctionTable, $JunctionTable)
T('InviteErrorPermission', T('ErrorPermission'))
these code wrote in the standard form?
$JunctionTable - probably no need since it refers to database table
All the other T('something') - you do the same way you've been doing it.
$Definition['Permission.'] = 'permission-in-the-language-you-are-translating';
$Definition[InviteErrorPermission'] = 'InviteErrorPermission-in-the-language-you-are-translating';
$Definition['ErrorPermission'] = 'ErrorPermission-in-the-language-you-are-translating';
did you try it and it didn't work
I suspect that means you!
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
So, why "$JunctionTable" comes between T( ) ?
Is this the correct form:
T('Permission.').$JunctionTable, $JunctionTable
They are nested; doesn't it matter? =>
T('InviteErrorPermission', T('ErrorPermission'))
??Indeed, No! because of "It seems not possible to find all codes into installed Vanilla to check them!"
I'm just translating result of grep command and output of locale-developer plugin! I don't know where any code will be appeared!?
I didn't get your intention!
You could test them by echoing them and see if they get picked up correctly.
throw it somewhere in one of your pages or create a page in the custompage plugin.
$JunctionTable = "blah";
echo T('Permission.'.$JunctionTable, $JunctionTable);
// I believe what I said above will work - but I am not testing them, just suggesting them.
T('InviteErrorPermission', T('ErrorPermission'))
use the custompage plugin and throw the line in there and see if it works the way you want.
I suspect that means you report modifications to github if you want to improve things, because no one is likely to do it for you. a tit-for-tat so to speak
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.