How can I translate these items (see picture); Local Developer couldn't find them.

x00
Don't PM about development, I'm not currently taking on clients MVP
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.
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
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.
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •I'm using Ubuntu. grep is available on linux, too -> toward learning search options! tnx to @whu606.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •:(
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:
<?php if (!defined('APPLICATION')) exit(); $Definition['Organize your Categories'] = 'AAAAA'; $Definition['Customize your Public Profile'] = 'BBBBB'; $Definition['Start your First Discussion'] = 'CCCCC'; $Definition['Manage your Plugins'] = 'DDDDD'; ?>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- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •also clear your cache when changing locale and definitions
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •qwenty wrote:
peregrine said:
Didn't work!
:'(
It doesn't need! I refresh firefox by Ctrl+F5, which refreshes the page from scratch.
Bump!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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.)
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •And I will stand by that edge with peregrine... holding him back, because we've got some more stuff to solve! :-)
What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme | Give thanks to the Vanilla Developers!
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •can you explain what "pull request" means please?
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •http://help.github.com/send-pull-requests/
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •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>")=>- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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????
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •You can do
....<p>'.T('SomeTextLabel','Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ipsum lacus, commodo molestie vehicula quis, mattis a elit. Curabitur nec elit nec ligula tincidunt tempor. Praesent pretium feugiat sem, iaculis mollis quam sodales et. Mauris sit amet nisl mauris. Curabitur eu felis non metus aliquet laoreet. Curabitur blandit ipsum et arcu molestie vulputate. Duis quam tortor, suscipit eu pharetra nec, accumsan elementum lectus. Donec libero nibh, dictum quis tristique quis, tincidunt non velit.').'</p>...Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@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!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •How should I translate the below code which is into:
models/class.permissionmodel.php?T('Permission.'.$JunctionTable, $JunctionTable)$JunctionTable, $JunctionTable -> ??
$Definition['Permission.'] = '???';
What about:
T('InviteErrorPermission', T('ErrorPermission'))- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •T('Permission.'.$JunctionTable, $JunctionTable)T('InviteErrorPermission', T('ErrorPermission'))these code wrote in the standard form?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •> T('Permission.'.$JunctionTable, $JunctionTable) >$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!
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •So, why "$JunctionTable" comes between T( ) ? Is this the correct form:
T('Permission.').$JunctionTable, $JunctionTableThey 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!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •I created a php file containing the below code and placed it into: /vanilla/plugins/CustomPages/pages
<?php echo T('Powered by Vanilla'); ?>Nothing happened! I'm not familiar with php. Is the above code correct?
Ok, Sure. I'll do.
Now, I have another odd problem: Add
/vanilla/applications/dashboard/design/admin.cssto the "design" folder of your current theme. then go to the dashboard. you'll see that images(icons) are (e.g.) disappeared. Why?- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I never played with Custompages till yesterday.
Suggestion: Become familiar with php :) .
This is what I did and it works for me.
/conf/locale.php
/vanilla/plugins/CustomPages/pages/default.php
//added this <?php echo T('Powered by Vanilla'); ?>
//rest of file
test shows up instead of Powered by Vanilla
check you cache, look in firebug to see what css files where loaded, see if images are located where it wants them to be.
BTW - What is the language you are translating to?
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •