I tried to upgrade to WebsiteBaker 2.10, but the files that had the language (º, no, ...) could not be downloaded.
do you have the special chars inside of the file names?
if YES, please read some informations about the rules for filenames and foldernames
some infos about names for files and folders and in summary for path'smax file name lenght
: 255 charsmax path lengh
t: 4096 charsallowed chars
: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9 . _ -minimum size for a filename
: 1 byte
some chars are placeholders or chars with a special function - never start a file- or foldername with -
. and .. are some special chars - the single point for invisible files + folders , the double point are only for path's
Ubuntu can also handle folder- and filenames and path's with these chars: \ : * ? " < > |
but not possible, to use the same names in other operation systems like Windows
in combination with the charset on the used page inside of back- or frontend, the script try to translate the (not allowed) chars into allowed chars, simple example is the %20 for a white space in a filename like this "example file.jpg" show's in a browser as "example%20file.jpg"
the same for every other special char like accent marks etc. keyword is here URL-Encoding
the other case are special chars inside of text (no file-or foldername to use it in a browser as URL)
a language file needs a special format, for WB (and nearly all other modern systems) UTF8 is the standard. WB has the possibility, to handle different language files at the same time, so the english language is loaded every time and work as a backup, all other language variables come's from another language file, defined in WB- or in User settings
to add a new language, make a copy of your favorite language file in wb-folder /language or from the language files from special addon, for example the download gallery in modules/download_gallery/languages. In my version, i have there at the moment 4 files, EN.php, DE.php, NL.php, FR.php. if i need now a translation to swedish, i make a copy from the file EN.php and rename it to SE.php
than i've to open this file with a editor like notepad++ etc and translate row by row. Be sure, that the editor has the correct setting to convert files utf8 without boom
. With these setting, you can write in the editor in your own language and the intern translator convert the special chars to real UTF8 - that's important for WB
for example some word's from my actual project
in german - Entenfrühstücksflei
in real UTF8 - EntenfrÃ¼hstÃ¼cksfl
other example: normal: Página - in utf8: PÃ¡gina
if you need a new
language for the backend, make at first a copy from a file inside of the wb-language-folder /languages
copy this file into another folder - recommended, a empty folder
Use ISO 3166-1
language codes (2 characters) -> https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
to found the correct language code
important for a new language file is these block here: (copied from PT.php (portuguese)
$language_code = 'PT';
$language_name = 'Portuguese (Brazil)';
$language_version = '4.0.0';
$language_platform = '2.11.0';
$language_author = 'Manuela v.d.Decken, Dietmar Wöllbrink';
$language_license = 'GNU General Public License 2.0';
very important is here the first row with the country code (here PT). For example: if i need a file for India, i change this line to IN and rename the file to IN.php. It's important, that the language code and the file name is equal.
After that, i can translate step by step everything in this new file to my favorite language.
if you're finish with the translation, zip this single file and install it as a new language under addons->language-> install language
after the install, you can select the "new" language in WB-Settings and in User Settings (Profile)
and now, you can build a special language file with the same name for the addon, it's not needed to install this new addon language, it's enough, if you copy this file into the languages-folder from the addon. wb select automatically this file, if this language is selected as your user language and (in frontend) set as the page language
if you want to change something from the existed language files, make at first a backup copy from this file somewhere on your locale machine.
since wb 2.10.x it's possible to clear the language cache. for that, click on the Link "Clear Translate Cache" in infowindow (i-Button in top menu). you have to ddo this everytime, when you change something in language files.
the original download_gallery add a folder protection file, called .htaccess into the folder /media/download_gallery.
rename this file to htaccess.txt for your test's
if this post doesnt solve your problems, maybe you can give a better description for the problems, screenshots are very helpfull.
And work step by step. it's difficult to help, if you write hundred's of problems in one single post