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.
2.1 Separate Local Definitions for Mobile
phreak
MVP
Ehm, i've been digging deeper in developing new mobile designs and it would make sense to use different definitions in the local file for some things.
For example changing "new discussions" to "+".
Can i hook into the local via the theme engine? thanx for info.
- VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
- VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla
1
Comments
I tried to do something like this using functions in the Gdn_Locale() class, but wasn't able to set (nonpersistent) translations through plugin and theme hooks.
Add Pages to Vanilla with the Basic Pages app
does this not work - adding definitions to your country specific php file.
themes/mobile/locale/en-CA.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.
@peregrine: I woulnd't know how i can set a different locale for the mobile and copy and change terms in a duplicated file. Small things can be done by changing CSS or do little tricks like adding div or span classes inside the translated term. With "visibility: hidden;" or visible you can adress them. But that's not the smartest workaround i thought so i was asking if there is already something like this implemented.
I also work on some responsive themes and especially here above described workaround is not bad at all. but it needs to be clearly explained to not so familiar theme users.
Do you mean that method does work, doesn't work, or you are unsure?
Add Pages to Vanilla with the Basic Pages app
I Didn't try it. just asked if it was attempted and if it worked.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@phreak wake up! I think I have your solution!
I tested below in vanilla 2.0.18.8 but it should work across all version 2.0.18 and above.
see:
http://vanillaforums.org/discussion/25641/how-to-tutorial-theme-specific-definitions-mobile-vs-non-mobile
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine: AWESOME. Sorry, i'm just too busy these days. Picking up, i promise.