|
From: Mark W. <ma...@rw...> - 2011-03-31 01:11:54
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
How can you check the locale ?<br>
<br>
if(locale == 'en)...<br>
<br>
elseif(locale == 'fr')....<br>
<br>
Mark<br>
<pre class="moz-signature" cols="72">_____________________________________________
Mob: 07725 695178
Email: <a class="moz-txt-link-abbreviated" href="mailto:ma...@rw...">ma...@rw...</a></pre>
<br>
On 30/03/2011 20:29, Scott Miller wrote:
<blockquote
cite="mid:AAN...@ma..."
type="cite"><br>
<br>
<div class="gmail_quote">---------- Forwarded message ----------<br>
From: <b class="gmail_sendername">Scott Miller</b> <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:sco...@gm...">sco...@gm...</a>></span><br>
Date: Wed, Mar 30, 2011 at 7:25 PM<br>
Subject: Re: [Tsheetx-developers] not receiving messages from
the Tsheetx-developers list<br>
To: <a moz-do-not-send="true"
href="mailto:ver...@fr...">ver...@fr...</a><br>
<br>
<br>
Excellent, sounds like we're making some good progress.<br>
<br>
Dates: We'll need to ensure setlocale is called with the correct
string retrieved from the configuration database once we get it
all working.<br>
<br>
String Structure: I had already realized this, and have begun
fixing some of those already (I did take French back in High
School, 2.5 decades ago. I like to joke the only thing I
remember in French is "Je ne parle pas Francais." but my actual
recollection is really not a great deal better than that.)<br>
<br>
Accented letters: Good to know, we'll need to work on getting
the headers fixed for you too.<br>
<font color="#888888"><br>
-Scott</font>
<div>
<div class="h5"><br>
<br>
<div class="gmail_quote">On Wed, Mar 30, 2011 at 7:06 PM, <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:ver...@fr..." target="_blank">ver...@fr...</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">Scott,<br>
<br>
Thanks for your help.<br>
<br>
Now it works for each JText call with the variables
being defined in the ini language files.<br>
<br>
DATES:<br>
------<br>
But, dates are not automatically translated in French
probably due to the 'fra' parameter missing when setting
the locale.<br>
For 1.5.2 version, I coded the locale in timezone.inc
with setlocale(LC_ALL,'fr_FR','fra') to have all dates
OK.<br>
<br>
STRING STRUCTURE:<br>
-----------------<br>
Some strings are actually concatenation of JText calls
and have to be defined in other way as in English a
string 'word1'.'word2' would be in French
'word2'.'word1'. I will work on that latter.<br>
<br>
ACCENTED LETTERS/CHARSET:<br>
-------------------------<br>
It's more convenient in the French language file to
write words normally with accented letters.<br>
But the accented letters are not displayed correctly in
timesheet pages.<br>
<br>
It is probably due to a conflict with the 'header' of
timesheet pages whereas the locale is set to 'fr-FR' in
include/jclasses/factory.php:<br>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "<a moz-do-not-send="true"
href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"><br>
<html xmlns="<a moz-do-not-send="true"
href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>"
xml:lang="en" lang="en"><br>
<head><br>
<meta http-equiv="content-type" content="text/html;
/><br>
<meta http-equiv="Content-Style-Type"
content="text/css" /><br>
<meta name="language" content="en" /><br>
<br>
For Joomla pages, the 'header' when the French language
is selected is:<br>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "<a moz-do-not-send="true"
href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"><br>
<html xmlns="<a moz-do-not-send="true"
href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>"
xml:lang="fr-fr" lang="fr-fr"><br>
<head><br>
<meta http-equiv="content-type" content="text/html;
charset=utf-8" /><br>
<br>
I'm going to commit the current French language files in
txsheet-2.0-demo.<br>
<div><br>
Isabelle.<br>
<br>
<br>
----- Mail Original -----<br>
De: "Scott Miller" <<a moz-do-not-send="true"
href="mailto:sco...@gm..."
target="_blank">sco...@gm...</a>><br>
À: "vergely isabelle" <<a moz-do-not-send="true"
href="mailto:ver...@fr..."
target="_blank">ver...@fr...</a>><br>
</div>
Envoyé: Mercredi 30 Mars 2011 17h53:02 GMT +01:00
Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne<br>
<div>
<div>Objet: Re: [Tsheetx-developers] not receiving
messages from the Tsheetx-developers list<br>
<br>
Actually, for testing purposes, you would need to
modify a line in this file:
include/jclasses/factory.php<br>
change the line that reads:<br>
$locale = "en-GB";<br>
<br>
to whatever locale string is appropriate for French.
Since the configuration stuff is currently broken,
the locale is hard coded for now...<br>
<br>
-Scott<br>
<br>
<br>
On Wed, Mar 30, 2011 at 3:48 PM, Scott Miller < <a
moz-do-not-send="true"
href="mailto:sco...@gm..."
target="_blank">sco...@gm...</a> >
wrote:<br>
<br>
<br>
Oh, load the various pages without the .php
extension, and then the site stuff will be
automatically loaded.<br>
<br>
So, for example the URL should look like this: <a
moz-do-not-send="true"
href="http://devts.example.com/testing/test-language-stuff"
target="_blank">http://devts.example.com/testing/test-language-stuff</a><br>
<br>
Yes, the configuration pages are broken, you would
need to mess directly with the configuration
database tables for now, sorry.<br>
<br>
-Scott<br>
<br>
<br>
<br>
<br>
<br>
On Wed, Mar 30, 2011 at 3:42 PM, < <a
moz-do-not-send="true"
href="mailto:ver...@fr..."
target="_blank">ver...@fr...</a> >
wrote:<br>
<br>
<br>
Hello,<br>
<br>
Thanks for checking my account in the subscriber
list.<br>
<br>
For txsheet-2.0-demo, I made the update of my
working copy with the last revision (290).<br>
<br>
I will soon commit a 'fr-FR' directory in the
'include/language' directory of<br>
<a moz-do-not-send="true"
href="https://tsheetx.svn.sourceforge.net/svnroot/tsheetx/branches/txsheet-2.0-demo/"
target="_blank">https://tsheetx.svn.sourceforge.net/svnroot/tsheetx/branches/txsheet-2.0-demo/</a><br>
using TortoiseSVN.<br>
<br>
Test of the file 'testing/test-language-stuff.php'
failed:<br>
- Only this message 'Restricted Access' displayed on
the page due to<br>
if(!class_exists('Site'))die('Restricted Access').<br>
- If I ingore this line, there is an other error
with the following line...<br>
- I also tried to removed many '//' and/or '/* ...
*/' of ignored lines<br>
and it doesn't work...<br>
<br>
Also:<br>
On the config page: unable to change default values;
message after the<br>
click on 'Save Changes': NOT CONVERTED TO OO YET.<br>
<br>
I guess that there is still some code to modify/add
to test the languages...<br>
<br>
Isabelle.<br>
<br>
----- Mail Original -----<br>
De: "Scott Miller" < <a moz-do-not-send="true"
href="mailto:sco...@gm..."
target="_blank">sco...@gm...</a> ><br>
À: "vergely isabelle" < <a
moz-do-not-send="true"
href="mailto:ver...@fr..."
target="_blank">ver...@fr...</a> ><br>
Cc: <a moz-do-not-send="true"
href="mailto:tsh...@li..."
target="_blank">tsh...@li...</a><br>
Envoyé: Mardi 29 Mars 2011 20h27:02 GMT +01:00
Amsterdam / Berlin / Berne / Rome / Stockholm /
Vienne<br>
Objet: Re: [Tsheetx-developers] not receiving
messages from the Tsheetx-developers list<br>
<br>
<br>
<br>
<br>
Hi Isabelle,<br>
<br>
I looked at the subscriber list, and you are still a
part of the list, and you're still active, but
you're set to receive digests, which should be sent
out daily. There have not been many emails on the
list lately, to see if you've missed any, you can
check out the March archive . I've got a few emails
out I would like to see some feedback about, but
nothing thus far.<br>
<br>
So, how are you doing as far as getting a handle on
the code layout so you can work on the French
version? And are you familiar with SVN? You can do
an "svn update" at the root level of the code you
checked out to automatically get any files that have
changed since you checked the code out. It's a good
practice to do an "svn update" each morning if
you're actively working on something. If you are
unfamiliar with anything, please let us know; we're
happy to help out.<br>
<br>
-Scott<br>
<br>
<br>
On Tue, Mar 29, 2011 at 4:51 PM, < <a
moz-do-not-send="true"
href="mailto:ver...@fr..."
target="_blank">ver...@fr...</a> >
wrote:<br>
<br>
<br>
Hello,<br>
<br>
During 4 days of the previous week (March, from 23
to 26), my email address was inactive: crash of the
server hosting my email account. Since Sunday, it
works again.<br>
Yesterday and today, I haven't received messages
sent to the list.<br>
My email has been deleted?<br>
<br>
Thanks in advance for your help.<br>
<br>
Isabelle.<br>
<br>
------------------------------------------------------------------------------<br>
Enable your software for Intel(R) Active Management
Technology to meet the<br>
growing manageability and security demands of your
customers. Businesses<br>
are taking advantage of Intel(R) vPro (TM)
technology - will your software<br>
be a part of the solution? Download the Intel(R)
Manageability Checker<br>
today! <a moz-do-not-send="true"
href="http://p.sf.net/sfu/intel-dev2devmar"
target="_blank">http://p.sf.net/sfu/intel-dev2devmar</a><br>
_______________________________________________<br>
Tsheetx-developers mailing list<br>
<a moz-do-not-send="true"
href="mailto:Tsh...@li..."
target="_blank">Tsh...@li...</a><br>
<a moz-do-not-send="true"
href="https://lists.sourceforge.net/lists/listinfo/tsheetx-developers"
target="_blank">https://lists.sourceforge.net/lists/listinfo/tsheetx-developers</a><br>
<br>
<br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/ms-webmatrix-sf">http://p.sf.net/sfu/ms-webmatrix-sf</a>
</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Tsheetx-developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Tsh...@li...">Tsh...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/tsheetx-developers">https://lists.sourceforge.net/lists/listinfo/tsheetx-developers</a>
</pre>
</blockquote>
</body>
</html>
|