Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Übersetzen Stunden
#1
Hi sehr gut,

Diese DSLan Übersetzt ins Spanische, aber es gibt Dinge, die ich nicht oder nicht wie die Stunden. Zum Beispiel, wenn man setzt Öffnungszeiten:

Heute um 15:17 Uhr

Und das ist nicht, wohin er führt, Jemand peude ich sagen?

Sorry für mein Deutsch Smile

Vielen Dank
Reply
#2
I do not understand what you've written. Please use a better translator or write in English.

Reply
#3
Please do not use a Translator.
Translators sucks and translate not good.
Manchmal denke ich:
Reply
#4
Ich denke er meint dass die spanische übersetzung ganz gut is nur dass eben manche sachen noch deutsch sind......


Please write in English because we all are not able to understand you. Smile
[Image: create.php?uid=14]
Reply
#5
Gibt es überhaupt eine Spanische Übersetzung?
Manchmal denke ich:
Reply
#6
Nein, ich glaube er hat es selber übersetzt, nur manche sachen kann er wohl nicht übersetzen.

Reply
#7
Hi very good,

I DSLan translated to Spanish but there are things I can not because I can not find the file for modification, for example this:

Heute um 15:17 Uhr

Greetings
Reply
#8
Where is it?

Reply
#9
When resources are not available or are attacking you when you said the time put:

Heute um 15:17 Uhr

And I would like to put it in Spanish:

Today at 15:17 hours



Greetings
Reply
#10
Try it with preg_replace()
Reply
#11
Hm ... I dont know where you can edit this to:

Today at 15:17 hours
Manchmal denke ich:
Reply
#12
(08.06.2009, 18:46)-superking- Wrote: Try it with preg_replace()

Wie willst du des mit preg_replace machen?
Das ist in ner verschlüsselten Datei, das kann man nicht ändern !!
Und ab V2 wird mehrsprachig sein ...

MfG Manuel
Reply
#13
(08.06.2009, 18:46)-superking- Wrote: Try it with preg_replace()

The function preg_replace() work for me! But when there are several words? as is?

For example:

morgen um 05:40 Uhr

I replaced by

Tomorrow at 5:40 Uhr

As we see the "Uhr" I could not change it.
Reply
#14
You can easier use str_replace with two arrays as the search and replace arguments (see php.net)
@slimshady, man bekommt eine variable, die ein string ist in smarty. Man kann ihn smarty auch php ausführen, dabei ändern sich die variablen bezeichnungen ein bischen, aber man kann sie immernoch verändern
Reply
#15
Hmm, könnte vllt klappen, aber du weißt nich wie die Variable heißt, oder!?

MfG Manuel
Reply
#16
Doch, ich müste halt nachschauen Wink schau dir doch mal die dateien in templates_c an Wink achja, php macht man in smarty {php}CODE{/php}. Kann vllt auch [php] gewesen sein, bin mir nicht ganz sicher, hab jetzt keine lan da...
Reply
#17
Ich weiß -.-
{php} ist es, bzw so wie dus in der Smarty_config.class.php einstellst, aber die is bei der lan ja encodet ...
Ja mal schaun...

MfG Manuel
Reply
#18
Code:
{php} $var = ((is_array($_tmp=$this->_tpl_vars['array']['end_time'])) ? $this->_run_mod_handler('format_date', true, $_tmp) : format_date($_tmp));                         
$var2 = preg_replace("/morgen um/","Mañana a las",$var);
$var3 = preg_replace("/heute um/","Hoy a las",$var);
$var4 = preg_replace("/am/","El",$var);
$var4b = preg_replace("/um/","a las",$var4);
if (substr($var2, 0, 2) == Ma)
{
echo substr($var2, 0, -3);
}
else
{
if (substr($var3, 0, 2) == Ho)
{
echo substr($var3, 0, -3);
}
else
{
echo substr($var4b, 0, -3);
}
}  {/php}
Reply
#19
Does it work?
Reply
#20
(08.06.2009, 23:05)-superking- Wrote: Does it work?

Yes it works
Reply




Users browsing this thread: 1 Guest(s)