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

How to put the Catalan flag in the new language? | Forum

Topic location: Forum home » Support » General Questions
Jordi
Jordi Jan 16 '14

Hello, I have translated the entire platform Oxwall to Catalan language. But to put the code ISO-639-CA or cat and not I get the flag. How should I do? 

Thank you!

Jordi
Jordi Jan 20 '14
Thanks for nothing!!
ross Team
ross Jan 22 '14
Please, read this post: http://www.oxwall.org/forum/topic/1470
Volker
Volker Nov 12 '14
Ok.. The post is not really helpful as far as adding a new language and flag. 


I did as follows (such a coincidence, for Catalan as well):


1. Create catalan language, I gave it the code ct-CT

2. Create catalan flag icon (16x16, png)

3. Upload flag icon to [web root directory]/ow_static/plugins/base/css/images/flags as CT.png

4. Edit the file [web root directory]/ow_static/plugins/base/css/ow.css adding the following lines (lines added are in bold): 

[...]

.ow_console_lang_co { 

background: url(images/flags/CO.png) no-repeat 0px 3px; 

.ow_console_lang_ct { 

 background: url(images/flags/CT.png) no-repeat 0px 3px; 

.ow_console_lang_cr {

[...]




Probably it will be overwritten with an oxwall update. Could any of the developers add it ti the code base?



 


The Forum post is edited by Volker Nov 12 '14
ross Team
ross Nov 12 '14
Volker, we just tried that on our test websites and it worked. The only difference we gave it a code just CT not ct-CT and add the code in ow.css not among these styles:

.ow_console_lang_co { 

background: url(images/flags/CO.png) no-repeat 0px 3px; 

.ow_console_lang_ct { 

 background: url(images/flags/CT.png) no-repeat 0px 3px; 

.ow_console_lang_cr {



but at the bottom, after this one: 
ow_console_lang_zw {    background: url(images/flags/ZW.png) no-repeat 0px 3px;}


then we enabled dev mode: http://docs.oxwall.org/plugin-tuts:enable-debug Then we refreshed our site and it worked. 
The Forum post is edited by ross Nov 12 '14
Volker
Volker Nov 13 '14
Good that I was able to solve the problem, then! :)
ross Team
ross Nov 13 '14
Alright, thanks for letting us know. As to the next update and file overwriting, just remember what changes you did and apply them again after.