language

language translation in php

How is language translation handled in PHP? I need to change the language of a site based on user preferences. Also, I may not have access to the client source code. At most, I could upload a folder of my own and do the dynamic translation myself. As far as I know, the basic process would be: Send Language 1 output to global function ->...

Building a language switcher - 2 languages only - ASP.NET MVC

ASP.NET MVC app, close to completion, then it was decided that it needed a language switcher. It will simply be two languages: English and Japanese. They should be able to switch between the two, but if one is not selected it should choose whichever is the default language of the browser. I'm wondering what the best solution would be in...

Mechanism to ensure a loop ends

When I was in college we had a guest lecture from David Parnas. In it he mentioned a mechanism that is used to guarantee that a loop (while loop, for loop, etc.) exits safely at some point. He scoffed at the fact that nobody knew what it was....the sad thing is that years later I dont know either. Does anyone know what this mechanism is ...

Learning a New Language on the Job

I've seen some blog posts about software developers just being hired learning a new language so that they can build their companies' next program. Personally, I've always believed that developers should already know the language since they're new to the company (and know what language the program will need). To expand on that, it's not l...

Measure the pronounceability of a word?

I'm tinkering with a domain name finder and want to favour those words which are easy to pronounce. Example: nameoic.com (bad) versus namelet.com (good). Was thinking something to do with soundex may be appropriate but it doesn't look like I can use them to produce some sort of comparative score. PHP code for the win. ...

What would be a good way to make a school library website? Language, Framework, CMS?

Im toying with the idea of offering to make my school a website for their library. I am an intermediate php programmer with advanced front end skills (started off as a designer). Was hoping someone would have some suggestions best way to approach the project. ...

English UI Terminology: Directory, or Folder?

When you are designing an application (assumed in English), and you ask the user to provide a path to a directory/folder, do you use the term Directory or Folder? Is one more understood than the other? Is one more "correct" than the other? ...

Return the language of a given string

What's the best way to return the language of a given string? Using encoding trick or something. Thanks ...

Setting language on iPhone application

Hi! I am working on an application which I am planning to release both in English and Spanish languages. With this I mean, I would like it to have two separate apps in the App Store, one being displayed with English title, and the other one with Spanish title (and each with contents in their respective language). This means that the la...

Japanese characters in a latex \section{} cause an error.

I am working on getting Japanese documents created with latex. I have installed the latest version of texlive-2008 which includes CJK. In my document I have the following: \documentclass{class} \usepackage{CJK} \begin{document} \begin{CJK*}{UTF8}{min} \title{[Japanese Characters here 1]} \maketitle \section{[Japanese Characters here 2]...

Wordpress PHP Image change depending on a language

I am trying to write a piece of code that would allow me to change images or a whole block of a div depending on the language <?php if($_SESSION['lang'] == "fr"){ echo "images/header-fr-4.jpg"; }else{ echo "images/header-4-en.jpg"; } ?> Is there any other way of doing this in wordpress? ...

Multi-lingual Drupal Site

This is my situation: I have two languages, namely English and German. However, I have several countries that should have different content. E.g. US, UK etc. Now, with i18n you can only have ONE english translation and one german translation. What is the best way to handle translating nodes in this scenario? More info: Location is nec...

Why all the functions from object oriented language allows to return only one value (General)

Hello all, I am curious to know about this. whenever I write a function which have to return multiple values, either I have to use pass by reference or create an array store values in it and pass them. Why all the Object Orinented languages functions are not allowed to return multiple parameters as we pass them as input. Like is there...

what are some cross-language libraries for people who know other languages (similar to phpjs)

PHPJS attempts to port php functions over to javascript. http://phpjs.org/ Rationale: people who know php's functions really well can write javascript and just carry over what they know from php into the javascript world Question: I would like to know if there are other language libraries where someone ported concepts from language X...

Would Ruby on Rails be appropriate for this Foreign Language project?

I'm a Spanish professor & computer groupie. About 15 years ago, I authored in HyperCard a series of verb conjugation programs that are now completely out of date with respect to System OS X. I would like to redo these programs myself because I had a lot of fun doing them last time (mostly I coded while my son played in Leaps and Bounds...

Is there any way to have language independent controllers/views/actions

I'm coding some web-applications in MVC, and I have a problem with something that has been on my mind for a time. The web-aplications I'm developing are mostly going to be used in Swedish, and because of the language I want to have my URL routing mapped against Swedish URL names. mysite.com/products/details/1 (English URL) mysite.com/...

Objective-C equivalent of Java Language Specification or C++ Standard?

What is the Objective-C equivalent of the Java Language Specification or the C++ Standard? Is it this: http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Introduction/introObjectiveC.html ? (I'm just looking for an (official) authoritative document which will explain the little nitty-gritties of the language. I'll ski...

Language w/ the smallest interpreter written in itself

What is the smallest (code-golf) interpreter that is written in the language it interprets. I think overall this would be a good indicator as to the balance of how robust a language is. Extremely simple (turing tarpits) languages are difficult to write large programs like interpreters in. More 'sugary' languages are simpler to write i...

Changing Flex Components Language

Hello everybody. When we are building a application in Flex the components that we add are in English. Lets say that i want to change then to French, Spanish or Portuguese. How could i do that?? I've google a bit about it, but nothing good. I didn't look too much, because you guys always now things, and here in SO its more faster to...

Getting Started with IL (Intermediate Language)

Can anyone suggest any good resources for getting started with IL. Specifically if anyone knows of any GOOD books or screencasts I would appreciate the feedback. ...