Questions tagged [multiple-languages]

This tag is to specify that a question being asked can apply to multiple programming languages, and has no specific language to be directly associated with it.

This tag is to specify that a question being asked can apply to multiple programming languages, and has no specific language to be directly associated with it.

Example questions could be:

  • Speed comparisons between different operations
  • Style comparisons between similar languages or languages that are used together
  • Usage comparisons between different languages with same/similar functions
  • Tasks that require having multiple languages work together to complete one ultimate objective
131 questions
78
votes
12 answers

How do multiple languages interact in one project?

I heard some people program in multiple languages in one project. I can't imagine how the languages interact with each other. I mean there is no Java method like myProgram.callCfunction(parameters); never happens or am I wrong?
n00ki3
  • 13,009
  • 15
  • 52
  • 65
28
votes
9 answers

Most efficient way to do language file in PHP?

Questions Updated instead of making a new question... I really want to provide a few alternative languages other then English on my social network site I am building, this will be my first time doing any kind of language translation so please bear…
JasonDavis
  • 45,100
  • 92
  • 294
  • 508
25
votes
5 answers

How do you organize 100+ projects in Eclipse?

When you have 5+ languages and 100+ projects, IMO the default of using one workspace is not acceptable because the one workspace becomes horribly disorganized. Having one huge unorganized workspace lowers your productivity. The question: What are…
Trevor Boyd Smith
  • 15,512
  • 24
  • 110
  • 159
25
votes
3 answers

Why non-equality check of one variable against many values always returns true?

I have a variable v in my program, and it may take any value from the set of values "a", "b", "c", ..., "z" And my goal is to execute some statement only when v is not "x", "y", or "z". I have tried, for C-like languages (where equality operators…
10
votes
15 answers

Are there any reasons not to use "this" ("Self", "Me", ...)?

I read this answer and its comments and I'm curious: Are there any reasons for not using this / Self / Me ? BTW: I'm sorry if this has been asked before, it seems that it is impossible to search for the word this on SO.
Daniel Rikowski
  • 66,219
  • 52
  • 237
  • 318
9
votes
2 answers

Disable auto change layout direction while using android:supportsRTL="true"

My application must support both RTL and LTR languages in the future but for now just RTLs. When I use android:supportsRTL="true" with android:layoutDirection="end" in each layout, NavigationView and Toolbar and everything else are fine. But the…
Abolfazl
  • 285
  • 2
  • 10
8
votes
5 answers

What is C++11's equivalent of Java's instanceof

I want to know what the modern C++11 equivalent of Java's instanceof. I have seen this SO post but it is quite old and was wondering if there's a more modern, better solution in C++11? I was hoping there's a possibility of using a switch construct…
pezpezpez
  • 574
  • 7
  • 15
8
votes
2 answers

How to design database schema for a content management system (cms) with multiple language support?

I am going to build a site with multiple language support, and I need to have the ability to control the workflow of the articles, companies, products. All with multiple language support and multiple versioning. Does anyone have the solution for…
7
votes
2 answers

Compiling Tail-Call Optimization In Mutual Recursion Across C and Haskell

I'm experimenting with the foreign-function interface in Haskell. I wanted to implement a simple test to see if I could do mutual recursion. So, I created the following Haskell code: module MutualRecursion where import Data.Int foreign import ccall…
6
votes
13 answers

Dangerous learning multiple languages at the same time?

I have been learning PHP for a few months now and I'd also like to learn JavaScript as I think they would make a good set of languages together for the type of projects that I like to do. But is it wise to learn two languages at the same time? What…
Ryan
  • 331
  • 3
  • 8
  • 21
6
votes
1 answer

Android: Change language android N, application instance not updated

I follow Android N change language programmatically to changed language of my app in android N and above. However, I still have the problem with the application context instance. In my Application class: private static Application…
4
votes
1 answer

Display language switcher button shortcode of WPGlobus plugin - Wordpress

I am using WPGlobus plugin to make website multi-language. A widget is displaying in widget area but I want to add language switcher button manually. I search its short code to display language switcher flags. But not found any any shortcode. Any…
4
votes
2 answers

Android string placeholder different languages

I have a string with two placeholders, with XML: %1$s informs that %2$s is not feeling well today. Because %2$s is either "he" or "she", when translated to portuguese, we should only have the first placeholder, that…
4
votes
4 answers

How to call a php function within