in Education by
i was wondering how you deal with permalinks on international sites. By permalink i mean some link which is unique and human readable. E.g. for english phrases its no problem e.g. /product/some-title/ but what do you do if the product title is in e.g chinese language?? how do you deal with this problem? i am implementing an international site and one requirement is to have human readable URLs. Thanks for every comment JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Characters outside the ISO Latin-1 set are not permitted in URLs according to this spec, so Chinese strings would be out immediately. Where the product name can be localised, you can use urls like //DIR/, e.g.: http://www.example.com/en/products/cat/ http://www.example.com/fr/products/chat/ accompanied by a mod_rewrite rule to the effect of: RewriteRule ^([a-z]+)/product/([a-z]+)? product_lookup.php?lang=$1&product=$2 For the first example above, this rule will call product_lookup.php?lang=en&product=cat. Inside this script is where you would access the internal translation engine (from the lang parameter, en in this case) to do the same translation you do on the user-facing side to translate, say, "Chat" on the French page, "Cat" on the English, etc. Using an external translation API would be a good idea, but tricky to get a reliable one which works correctly in your business domain. Google have opened up a translation API, but it currently only supports a limited number of languages. English <=> Arabic English <=> Chinese English <=> Russian

Related questions

0 votes
    I'm trying to create a local temp bigquery table in memory for testing purposes. I'm doing this ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 3, 2022 in Education by JackTerrance
0 votes
    Is it possible to create drop down filter?...
asked Nov 21, 2020 in Technology by JackTerrance
+1 vote
    Is it possible to create a custom domain name, or use your organisation's domain name such as eduforum.in, in Azure Active Directory?...
asked Oct 20, 2020 in Technology by JackTerrance
0 votes
    State whether the following statements are True or False, with reasons: A system of Independent States is called International System. Please answer the above question....
asked Aug 20, 2022 in Education by JackTerrance
0 votes
    State whether the following statements are True or False, with reasons: Interdependence is not an important feature of the International System. Please answer the above question....
asked Aug 20, 2022 in Education by JackTerrance
0 votes
    Can the United Nations intervene militarily if there is a serious threat to international peace? Please answer the above question....
asked Aug 10, 2022 in Education by JackTerrance
0 votes
    How many Judges are there in the International Court of Justice? (a) 9 (b) 10 (c) 12 (d) 15 Please answer the above question....
asked Aug 10, 2022 in Education by JackTerrance
0 votes
    What is the term of a judge of the International Court of Justice? (a) 9 years (b) 4 years (c) 6 years (d) 5 years Please answer the above question....
asked Aug 10, 2022 in Education by JackTerrance
0 votes
    Explain the following concepts: 1. Millennium Development Goals 2. International Criminal Court Please answer the above question....
asked Aug 6, 2022 in Education by JackTerrance
0 votes
    Explain the following concepts: 1. International Court of Justice. 2. The UN Security Council. Please answer the above question....
asked Aug 6, 2022 in Education by JackTerrance
0 votes
    How had India helped to solve international conflicts peacefully? Please answer the above question....
asked Aug 6, 2022 in Education by JackTerrance
0 votes
    Which among the following is an International problem? (a) Border dispute between Maharashtra and Karnataka (b) ... Naxalism in Andhra Pradesh Please answer the above question....
asked Aug 4, 2022 in Education by JackTerrance
0 votes
    Which among the following days is observed at an international level? (a) Teachers’ Day (b) Children’s Day (c) Earth Day (d) Flag Day Please answer the above question....
asked Aug 4, 2022 in Education by JackTerrance
0 votes
    The United Nations General Assembly adopted the International Covenant on Civil and Political Rights (ICCPR) in .......... ... (c) 1964 (d) 1962 Please answer the above question....
asked Aug 4, 2022 in Education by JackTerrance
0 votes
    The headquarter of the International Court of Justice is (a) New York (b) Paris (c) Heague (d) London Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
...