WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 23.07.2015 15:43:03

norhei
Developer

Cleanup Proposal : Language Files

Taking a quick look into the Source i mentioned the really old "old.format.inc.php" file in the language folder.
This means that somewhere in the code there are still some old language vars , that need to be take care of if you start modifying the backend.
I guess it would be a pretty good idea to finally remove em.   

This does not need special coding skills, just someone who knows to use Notepad++.

Offline

#2 23.07.2015 18:50:54

florian
Administrator

Re: Cleanup Proposal : Language Files

Hat für mich nicht so oberste Priorität, ehrlich gesagt. Wenn die nicht irgendwie Sicherheits- oder Stabilitätsprobleme verursachen, sehe ich da keinen akuten Handlungsbedarf. Später gern, kommt also mit auf die To-Do-List, derzeit gibt es m.E. Dringenderes.


Wir Benötigen: Cents, Euros... jetzt spenden!

Offline

#3 23.07.2015 20:21:31

norhei
Developer

Re: Cleanup Proposal : Language Files

The basic Idea why i like to cleanup is taht it saves so much time later on, for example if we cleanupt the language mess i got a nice little tool that synchronizes all language files if you just change the Englich one. (Add vars or remove some vars) Its even capable of translating via Google translate.(if you got an api key). Whith all that language mess in place its pretty  hard to apply.

Its not first priority, but this is whishlist  tongue

Offline

#4 24.07.2015 10:59:33

webbird
Administrator

Re: Cleanup Proposal : Language Files

https://github.com/WBCE/WebsiteBaker_CommunityEdition/issues/8


Ich habe eine Amazon-Wishlist. wink Oder spende an das Projekt.
Ich kann, wenn ich will, aber wer will, dass ich muss, kann mich mal

Offline

#5 01.08.2015 22:10:40

norhei
Developer

Re: Cleanup Proposal : Language Files

Ok i started cleaning up old language vars as you can see on GIT

Offline

#6 01.08.2015 22:48:40

norhei
Developer

Re: Cleanup Proposal : Language Files

Hopefully i got em all now , but asking myself why noone whitin 6 years was able to do this  roll

Offline

#7 16.11.2015 10:27:38

florian
Administrator

Re: Cleanup Proposal : Language Files

I just noticed that the naming of the language selection is a bit messed up. Sometimes still the language name is used, e.g. "Dansk", "English",  and sometimes the country name is used, e.g. "Germany". This looks a bit weird (and especially the wording "Germany" instead of "German" is not very polite to WB users in Austria, Switzerland or any other place where a user who wants to use the backend in german language is situated). So I would prefer to switch back to the old and imho more accurate use of the language names for all entries.


Wir Benötigen: Cents, Euros... jetzt spenden!

Offline

#8 16.11.2015 14:40:24

norhei
Developer

Re: Cleanup Proposal : Language Files

Makes Sense to me . But does this have to do whith languagefiles and wrong named languagevars?

Offline

#9 16.11.2015 14:49:44

florian
Administrator

Re: Cleanup Proposal : Language Files


Wir Benötigen: Cents, Euros... jetzt spenden!

Offline

#10 16.11.2015 16:02:23

norhei
Developer

Re: Cleanup Proposal : Language Files

Ahhh... ok
The auto tool did  :-)

You have to change the language array in the  language file tool , those files are auto generated .

Or maybe simply return an edited Array back to me .

  $countries = array(
    'AD' => 'Andorra', 
    'AE' => 'United Arab Emirates', 
    'AF' => 'Afghanistan', 
    'AG' => 'Antigua and Barbuda', 
    'AI' => 'Anguilla', 
    'AL' => 'Albania', 
    'AM' => 'Armenia', 
    'AN' => 'Netherlands Antilles', 
    'AO' => 'Angola', 
    'AQ' => 'Antarctica', 
    'AR' => 'Argentina', 
    'AS' => 'American Samoa', 
    'AT' => 'Austria', 
    'AU' => 'Australia', 
    'AW' => 'Aruba', 
    'AX' => 'Aland Islands', 
    'AZ' => 'Azerbaijan', 
    'BA' => 'Bosnia and Herzegovina', 
    'BB' => 'Barbados', 
    'BD' => 'Bangladesh', 
    'BE' => 'Belgium', 
    'BF' => 'Burkina Faso', 
    'BG' => 'Bulgaria', 
    'BH' => 'Bahrain', 
    'BI' => 'Burundi', 
    'BJ' => 'Benin', 
    'BL' => 'Saint Barthélemy', 
    'BM' => 'Bermuda', 
    'BN' => 'Brunei', 
    'BO' => 'Bolivia', 
    'BR' => 'Brazil', 
    'BS' => 'Bahamas', 
    'BT' => 'Bhutan', 
    'BV' => 'Bouvet Island', 
    'BW' => 'Botswana', 
    'BY' => 'Belarus', 
    'BZ' => 'Belize', 
    'CA' => 'Catalan', 
    'CC' => 'Cocos (Keeling) Islands', 
    'CD' => 'Congo (Kinshasa)', 
    'CF' => 'Central African Republic', 
    'CG' => 'Congo (Brazzaville)', 
    'CH' => 'Switzerland', 
    'CI' => 'Ivory Coast', 
    'CK' => 'Cook Islands', 
    'CL' => 'Chile', 
    'CM' => 'Cameroon', 
    'CN' => 'China', 
    'CO' => 'Colombia', 
    'CR' => 'Costa Rica', 
    'CU' => 'Cuba', 
    'CW' => 'Curaçao', 
    'CV' => 'Cape Verde', 
    'CX' => 'Christmas Island', 
    'CY' => 'Cyprus', 
    'CS' => 'čeština', 
    'DE' => 'Germany', 
    'DJ' => 'Djibouti', 
    'DA' => 'Dansk', 
    'DM' => 'Dominica', 
    'DO' => 'Dominican Republic', 
    'DZ' => 'Algeria', 
    'EC' => 'Ecuador', 
    'EE' => 'Estonia', 
    'EG' => 'Egypt', 
    'EH' => 'Western Sahara', 
    'ER' => 'Eritrea', 
    'ES' => 'Spain', 
    'ET' => 'Ethiopia', 
    'EN' => 'English',
    'FI' => 'Finland', 
    'FJ' => 'Fiji', 
    'FK' => 'Falkland Islands', 
    'FM' => 'Micronesia', 
    'FO' => 'Faroe Islands', 
    'FR' => 'France', 
    'GA' => 'Gabon', 
    'GB' => 'United Kingdom', 
    'GD' => 'Grenada', 
    'GE' => 'Georgia', 
    'GF' => 'French Guiana', 
    'GG' => 'Guernsey', 
    'GH' => 'Ghana', 
    'GI' => 'Gibraltar', 
    'GL' => 'Greenland', 
    'GM' => 'Gambia', 
    'GN' => 'Guinea', 
    'GP' => 'Guadeloupe', 
    'GQ' => 'Equatorial Guinea', 
    'GR' => 'Greece', 
    'GS' => 'South Georgia and the South Sandwich Islands', 
    'GT' => 'Guatemala', 
    'GU' => 'Guam', 
    'GW' => 'Guinea-Bissau', 
    'GY' => 'Guyana', 
    'HK' => 'Hong Kong S.A.R., China', 
    'HM' => 'Heard Island and McDonald Islands', 
    'HN' => 'Honduras', 
    'HR' => 'Croatia', 
    'HT' => 'Haiti', 
    'HU' => 'Hungary', 
    'ID' => 'Indonesia', 
    'IE' => 'Ireland', 
    'IL' => 'Israel', 
    'IM' => 'Isle of Man', 
    'IN' => 'India', 
    'IO' => 'British Indian Ocean Territory', 
    'IQ' => 'Iraq', 
    'IR' => 'Iran', 
    'IS' => 'Iceland', 
    'IT' => 'Italy', 
    'JE' => 'Jersey', 
    'JM' => 'Jamaica', 
    'JO' => 'Jordan', 
    'JP' => 'Japan', 
    'KE' => 'Kenya', 
    'KG' => 'Kyrgyzstan', 
    'KH' => 'Cambodia', 
    'KI' => 'Kiribati', 
    'KM' => 'Comoros', 
    'KN' => 'Saint Kitts and Nevis', 
    'KP' => 'North Korea', 
    'KR' => 'South Korea', 
    'KW' => 'Kuwait', 
    'KY' => 'Cayman Islands', 
    'KZ' => 'Kazakhstan', 
    'LA' => 'Laos', 
    'LB' => 'Lebanon', 
    'LC' => 'Saint Lucia', 
    'LI' => 'Liechtenstein', 
    'LK' => 'Sri Lanka', 
    'LR' => 'Liberia', 
    'LS' => 'Lesotho', 
    'LT' => 'Lithuania', 
    'LU' => 'Luxembourg', 
    'LV' => 'Latvia', 
    'LY' => 'Libya', 
    'MA' => 'Morocco', 
    'MC' => 'Monaco', 
    'MD' => 'Moldova', 
    'ME' => 'Montenegro', 
    'MF' => 'Saint Martin (French part)', 
    'MG' => 'Madagascar', 
    'MH' => 'Marshall Islands', 
    'MK' => 'Macedonia', 
    'ML' => 'Mali', 
    'MM' => 'Myanmar', 
    'MN' => 'Mongolia', 
    'MO' => 'Macao S.A.R., China', 
    'MP' => 'Northern Mariana Islands', 
    'MQ' => 'Martinique', 
    'MR' => 'Mauritania', 
    'MS' => 'Montserrat', 
    'MT' => 'Malta', 
    'MU' => 'Mauritius', 
    'MV' => 'Maldives', 
    'MW' => 'Malawi', 
    'MX' => 'Mexico', 
    'MY' => 'Malaysia', 
    'MZ' => 'Mozambique', 
    'NA' => 'Namibia', 
    'NC' => 'New Caledonia', 
    'NE' => 'Niger', 
    'NF' => 'Norfolk Island', 
    'NG' => 'Nigeria', 
    'NI' => 'Nicaragua', 
    'NL' => 'Netherlands', 
    'NO' => 'Norway', 
    'NP' => 'Nepal', 
    'NR' => 'Nauru', 
    'NU' => 'Niue', 
    'NZ' => 'New Zealand', 
    'OM' => 'Oman', 
    'PA' => 'Panama', 
    'PE' => 'Peru', 
    'PF' => 'French Polynesia', 
    'PG' => 'Papua New Guinea', 
    'PH' => 'Philippines', 
    'PK' => 'Pakistan', 
    'PL' => 'Poland', 
    'PM' => 'Saint Pierre and Miquelon', 
    'PN' => 'Pitcairn', 
    'PR' => 'Puerto Rico', 
    'PS' => 'Palestinian Territory', 
    'PT' => 'Portugal', 
    'PW' => 'Palau', 
    'PY' => 'Paraguay', 
    'QA' => 'Qatar', 
    'RE' => 'Reunion', 
    'RO' => 'Romania', 
    'RS' => 'Serbia', 
    'RU' => 'Russia', 
    'RW' => 'Rwanda', 
    'SA' => 'Saudi Arabia', 
    'SB' => 'Solomon Islands', 
    'SC' => 'Seychelles', 
    'SD' => 'Sudan', 
    'SE' => 'Sweden', 
    'SG' => 'Singapore', 
    'SH' => 'Saint Helena', 
    'SI' => 'Slovenia', 
    'SJ' => 'Svalbard and Jan Mayen', 
    'SK' => 'Slovakia', 
    'SL' => 'Sierra Leone', 
    'SM' => 'San Marino', 
    'SN' => 'Senegal', 
    'SO' => 'Somalia', 
    'SR' => 'Suriname', 
    'ST' => 'Sao Tome and Principe', 
    'SV' => 'El Salvador', 
    'SY' => 'Syria', 
    'SZ' => 'Swaziland', 
    'TC' => 'Turks and Caicos Islands', 
    'TD' => 'Chad', 
    'TF' => 'French Southern Territories', 
    'TG' => 'Togo', 
    'TH' => 'Thailand', 
    'TJ' => 'Tajikistan', 
    'TK' => 'Tokelau', 
    'TL' => 'Timor-Leste', 
    'TM' => 'Turkmenistan', 
    'TN' => 'Tunisia', 
    'TO' => 'Tonga', 
    'TR' => 'Turkey', 
    'TT' => 'Trinidad and Tobago', 
    'TV' => 'Tuvalu', 
    'TW' => 'Taiwan', 
    'TZ' => 'Tanzania', 
    'UA' => 'Ukraine', 
    'UG' => 'Uganda', 
    'UM' => 'United States Minor Outlying Islands', 
    'US' => 'United States', 
    'UY' => 'Uruguay', 
    'UZ' => 'Uzbekistan', 
    'VA' => 'Vatican', 
    'VC' => 'Saint Vincent and the Grenadines', 
    'VE' => 'Venezuela', 
    'VG' => 'British Virgin Islands', 
    'VI' => 'U.S. Virgin Islands', 
    'VN' => 'Vietnam', 
    'VU' => 'Vanuatu', 
    'WF' => 'Wallis and Futuna', 
    'WS' => 'Samoa', 
    'YE' => 'Yemen', 
    'YT' => 'Mayotte', 
    'ZA' => 'South Africa', 
    'ZM' => 'Zambia', 
    'ZW' => 'Zimbabwe'
  );

Btw. only :"BG,CA,CS,DA,DE,ES,ET,FI,FR,HR,HU,IT,LV,NL,NO,PL,PT,RU,SE,TR,SK"
are actually used.

Offline

#11 17.11.2015 12:41:30

norhei
Developer

Re: Cleanup Proposal : Language Files

Do this language names give a better match?
http://heimsath.org/blog/articles/iso-sprachen/

Offline

#12 17.11.2015 12:47:15

florian
Administrator

Re: Cleanup Proposal : Language Files

yes


Wir Benötigen: Cents, Euros... jetzt spenden!

Offline

#13 17.11.2015 13:12:17

norhei
Developer

Re: Cleanup Proposal : Language Files

I think i do some additional homework and add language names in nativ language to the table.
Right now i think WB would habe trouble whith utf-8 , but later this may be usefull.

Offline

Fußzeile des Forums

up