We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Add custom language key (OW 1.8) | Forum

Topic location: Forum home » Support » General Questions
Lars
Lars Nov 4 '15
Hi there,


I am having a question. Yes I do. I added custom code to the flag_component. Something like: 'help' => OW::getLanguage()->text('base', 'flag_help'))


When I flag something the new option shows up, but as base+flag_help. Okay, that's normal, as there's no value for that key.


The question is - How do I add the key to the language section of the admin panel? What would be the best way to do so? I tried to find the key, as I thought it might have been recognized automatically, but I wasn't able to.


Thanks for your help in advance!



ross Team
ross Nov 4 '15
You need to enter this as your url: www.yourdomain.com/admin/settings/dev-tools/languages

you'll get 'add new text' button on that page

add your key flag_help, choose corresponding section - base and it's value. 

Lars
Lars Nov 5 '15
Ah, thank you Ross. I could have tryed that, as I read about it. But I thought it was from an earlier version. That explains everything!


Thanks again!