473,396 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Approach to internationalization

Can anyone recommend an approach to internationalization?

I am specifically concerned about the need to append an &lang=xx to
every internal link and URL. I really don't want to have to manually do
this if at all possible. Is there an approach anyone has taken to this
problem, perhaps some way of autogenerating the query string, or
avoiding it altogether.

If it helps I am using Smarty for this project.
Jan 7 '08 #1
3 1291
Hugh Oxford wrote:
Can anyone recommend an approach to internationalization?
Make them learn English?

>
I am specifically concerned about the need to append an &lang=xx to
every internal link and URL. I really don't want to have to manually do
this if at all possible. Is there an approach anyone has taken to this
problem, perhaps some way of autogenerating the query string, or
avoiding it altogether.
Sessions would allow you to invisbly carry a language variable..
>
If it helps I am using Smarty for this project.
Jan 7 '08 #2

"The Natural Philosopher" <a@b.cwrote in message
news:11****************@proxy02.news.clara.net...
Hugh Oxford wrote:
>Can anyone recommend an approach to internationalization?

Make them learn English?
.... because it is your internet after all?

I hope you didnt realise what you wrote here, and meant it as a joke.
Even then I dont find it very funny...

Richard.
Jan 7 '08 #3
On Mon, 07 Jan 2008 21:26:48 +0100, Hugh Oxford <ar*****@fas.comwrote:
Can anyone recommend an approach to internationalization?

I am specifically concerned about the need to append an &lang=xx to
every internal link and URL. I really don't want to have to manually do
this if at all possible. Is there an approach anyone has taken to this
problem, perhaps some way of autogenerating the query string, or
avoiding it altogether.
I usually have pseudo URL's like:
example.eu/en/rest/of/path/
example.eu/de/rest/of/path/
example.eu/nl/rest/of/path/
example.eu/fr/rest/of/path/
... which will be examined by PHP itself. Requires a 'single point of
entry' system though, or use Apache mod_rewrite to alter it into a GET
variable.

Somewhat dirty, but a function which can make live easier, is this:
http://nl2.php.net/manual/en/functio...ewrite-var.php

Storing them in sessions as suggested is something I do, but don't rely
on. My sessions are not transparant, and I'd hate to have cookies being
required for 'open' pages (or inaccessable for searchbots for example).
--
Rik Wasmus
Jan 7 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Brian Kelley | last post by:
I have been using gettext and various utilities to provide internationalization for a wxPython application and have not really been liking the process. Essentially it uses a macro-style notation...
19
by: Johannes Nix | last post by:
Hello, yesterday I met a cute person (after my dance class) who told me about an interesting experiment regarding cognition. People were told to read a typed text; However, in every word in the...
12
by: Chris Mullins | last post by:
I'm implementing RFC 3491 in .NET, and running into a strange issue. Step 1 of RFC 3491 is performing a set of mappings dicated by tables B.1 and B.2. I'm having trouble with the following...
9
by: Developer | last post by:
Hello, I have an xml retrieved by a client running Japanese windows from a server running Japanese windows. I can view this document in IE.6. (The Opera browser, though, reports the error.) ...
6
by: Zlatko Matić | last post by:
What is the easiest way to accomplish internationalization in Access application?
2
by: Internationalization | last post by:
COMSYS Globalization Practice is looking for a C#/.NET Internationalization consultant in OR. Can you please contact me if you are interested or else know someone who would be interested. It will...
3
by: Jules | last post by:
i'm working with translators that just want to translate "web pages" and not deal with resource files. i'd like to have a file structure that looks sort of like this: / <- root directory where...
3
by: Pieter | last post by:
Hi, What's the commonly used way to do internationalization of the text in MessageBoxes? Thanks a lot in advance, Pieter
2
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - Internationalization and Multinationalization in javascript....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.