MyBB Themes - ThemeFreak
Translate Theme - Printable Version

+- MyBB Themes - ThemeFreak (http://www.themefreak.net)
+-- Forum: MyBB 1.8.x (http://www.themefreak.net/forumdisplay.php?fid=26)
+--- Forum: Theme Support for 1.8.x (http://www.themefreak.net/forumdisplay.php?fid=33)
+--- Thread: Translate Theme (/showthread.php?tid=576)



Translate Theme - thedivision - 25th Dec

How can I translate gameone theme?  Huh

Code:
<span data-lang-variable="avatar"></span>
<span data-lang-variable="sig"></span>
<span data-lang-variable="profile"></span>

I cant edit "data-lang-variable"


RE: Translate Theme - Tan - 25th Dec

Hi, where are you finding that code and what are you trying to change on the frontend?


RE: Translate Theme - Tan - 25th Dec

To edit "Avatar" or any other text like you wanted you'll need to edit global.css. Find the following:

Code:
span[data-lang-variable="avatar"]:before {
content: "Avatar";
}

Replace with:

Code:
span[data-lang-variable="avatar"]:before {
content: "YourCustomText";
}



RE: Translate Theme - thedivision - 25th Dec

(25th Dec, 06:07 pm)Tan Wrote:  To edit "Avatar" or any other text like you wanted you'll need to edit global.css. Find the following:


Code:
span[data-lang-variable="avatar"]:before {
content: "Avatar";
}

Replace with:


Code:
span[data-lang-variable="avatar"]:before {
content: "YourCustomText";
}

my god! Big Grin why you hide in css files Big Grin

Thank you Shy


RE: Translate Theme - Tan - 26th Dec

(25th Dec, 07:53 pm)thedivision Wrote:  
(25th Dec, 06:07 pm)Tan Wrote:  To edit "Avatar" or any other text like you wanted you'll need to edit global.css. Find the following:



Code:
span[data-lang-variable="avatar"]:before {
content: "Avatar";
}

Replace with:



Code:
span[data-lang-variable="avatar"]:before {
content: "YourCustomText";
}

my god!  Big Grin why you hide in css files  Big Grin

Thank you  Shy

Happy to help. If you have other questions please open another thread Smile