HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Locale translation Help
DogHam
✭
Hi guys.
I'm trying to translate the locale (to correct the translation) and I have a problem.
When I go to the Profile there is a wrong translation of "About". We don't say it just About because it's just one letter "O" and we have to say "About (username)". I'm trying to change the definition but it wont show me the username.
How can I change it?
$Definition['About'] = 'O';
Thank you
Tagged:
0
Comments
So you want to make it say the username dynamically?
That is not a locale problem, you will have to override a view for that in your theme.
Copy applications/dashboard/views/modules/userinfo.php to themes/YourThemeFolder/views/dashboard/modules/userinfo.php
Use
<?php echo $this->User->Name; ?>
to display the username.My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
When I go on any profile on my forum, there is "About" but I want to display "About Username" because in slovak language you can't say just about.
I copied the userinfo.php to theme folder (I had to create folders dashboard/modules) and put
<?php echo $this->User->Name; ?>
in the "site_core.php" where are all my definitions.Now look at that
Almost correct. Like I said, It's not a locale problem.
You have to add that to the copied userinfo.php (in your theme folder) on that line:
https://github.com/vanilla/vanilla/blob/2.1/applications/dashboard/views/modules/userinfo.php#L8
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
changed like this
<?php echo T('About'); ?><?php echo $this->User->Name; ?>
but nothing changes there...
Sorry, I got the path wrong. It's just themes/YourThemeFolder/views/modules/userinfo.php
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
You are the king. Thank you very much!