WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => WebsiteBaker Language Files => Topic started by: Availor on July 03, 2008, 11:33:06 PM

Title: Hebrew Language File (RTL)
Post by: Availor on July 03, 2008, 11:33:06 PM
A bit OT - attached is the language file...

[gelöscht durch Administrator]
Title: Hebrew Language File (RTL)
Post by: Stefek on July 03, 2008, 11:38:54 PM
A bit OT - attached is the language file...

This OT is for me...

Thanks Availor.

// OT end of --->

Best Regards,
Stefek
Title: Re: Hebrew Language File (RTL)
Post by: proglot on November 03, 2008, 11:29:53 PM
Here is a file above, but with ALL lines translated

[gelöscht durch Administrator]
Title: Re: Hebrew Language File (RTL)
Post by: thorn on November 04, 2008, 12:46:02 AM
Hello,

thanks for your contribution.
I just fixed some minor formal issues ( some \" instead of ", missing ' by '.SERVER_EMAIL.' ).
Would be nice if you can check the file again. Maybe i broke some translations [my tools can't handle RTL languages very well -- seems the language editor can't handle them at all :-( ].
Check specially
MY_EMAIL
SERVER_EMAIL
WBMAIL_FUNCTION

thorn.

[gelöscht durch Administrator]
Title: Re: Hebrew Language File (RTL)
Post by: proglot on November 04, 2008, 01:20:26 AM
I checked file and removed backslashes in those lines
you do not need to escape double quote in single quoted string
and in Hebrew it is common way to abbreviate words like
'electronic mail' ==> 'el"mail'
actually it sound like:
doar electroni ==> do"el

I fixed file using meld comparison and editing tool.

[gelöscht durch Administrator]
Title: Re: Hebrew Language File (RTL)
Post by: thorn on November 04, 2008, 09:03:40 PM
Hello,

excellent work.
I updated the file on the language-page http://addons.WebsiteBaker.org/pages/languages.php
Thanks to proglot and Availor.

thorn.
Title: Re: Hebrew Language File (RTL)
Post by: Tzvook on May 14, 2009, 07:19:46 PM
Hi All

I'm using wb for ages now ( I made Hebrew version a few years ago ) , but version 2.7 is killing me ...

Those UTF conversions into gibrish in the database ???? for what ?
why not using it like b4 ???
It simply refuse to work for me ...

I setup a new database - utf8_general_ci  +  collation  .... and all I get is GIBRISH in the database instead of Hebrew .... am I missing something ?? ... well ... should I ask What am I missing here ???? ...
Title: Re: Hebrew Language File (RTL)
Post by: Tzvook on May 14, 2009, 07:38:07 PM
Actually I tryed almost all options with MySql
It's got to be this weird UTF conversion file ( charsets_table.php ) ... ?? ?? ??

I can't understand the need of UTF converion .... tha't supposed to be the use of UTF - no conversions .... database get's the original ...
Title: Re: Hebrew Language File (RTL)
Post by: thorn on May 14, 2009, 07:42:25 PM
Hello,

there is still missing a "SET NAMES UTF8" in class.database.php.
This is missing since the very first version of website baker, and for compatibility reasons (and some other issues)  nobody fixed that.

open the file /framework/class.database.php,
locate
Code: [Select]
// Connect to the database
function connect() {
and add mysql_query("SET NAMES utf8"); into the last else-branch
Code: [Select]
} else {
    if(!mysql_select_db(DB_NAME)) {
        $this->connected = false;
        $this->error = mysql_error();
    } else {
        $this->connected = true;
        mysql_query("SET NAMES utf8");  // add this line
    }


Edit: purge the database before.
And you have to make sure that the database's default-charset is utf8 as well.


thorn.
Title: Re: Hebrew Language File (RTL)
Post by: Tzvook on May 14, 2009, 08:04:34 PM
10x thorn.

You saved my hair .... was  :mrgreen: and now   :-o

yep - did the trick !!!
so now I'm back to WB after a year of XOOPS only ....
so many new modules .... wow ... good to be back ...

I might even try to make a module from my last WB project : http://www.inthetube.tv/ (http://www.inthetube.tv/) ... made with a heavily moded 2.6 version along with apache rewriteRules ( take a look @ http://spiritual.inthetube.tv/ (http://spiritual.inthetube.tv/) - it's simply a WB page turning automatically into sub-domain ) ... hard to recognize - but - yep - made with "thinking out of the box" - WB :-)
Title: Re: Hebrew Language File (RTL)
Post by: proglot on May 17, 2009, 12:06:00 AM
Can you share the .htaccess