Questions tagged [translation-scheme]

7 questions
9
votes
3 answers

Convert integers to roman numerals using a syntax-directed translation scheme?

The Dragon Book includes an exercise on converting integers to roman numerals using a syntax-directed translation scheme. How can this be completed?
Daniel Magliola
  • 30,898
  • 61
  • 164
  • 243
3
votes
1 answer

C# application to read in and translate other applications

I am trying to build a Translation Assistant which can read in other compiled C# application (.exe), and display the forms from the EXE, are displayed individually, along with a table next to it with english column which will show the current…
Sweetu
  • 31
  • 2
2
votes
5 answers

Javascript and Translations

I have a PHP application that makes extensive use of Javascript on the client side. I have a simple system on the PHP side for providing translators an easy way to provide new languages. But there are cases where javascript needs to display…
Karim
  • 18,347
  • 13
  • 61
  • 70
1
vote
0 answers

Exercise from Dragon Book - Is my translation scheme correct?

I started doing exercise 2.4.5 in Dragon book second edition and found some answers in internet but they seems wrong for me First of all this is the exercise: Construct a syntax-directed translation scheme that translates postfix arithmetic…
1
vote
1 answer

How to make proper module translations in Drupal 8?

I have to prepare modules translations, but the documentation is not helping me. I know i can use *.pot files, but i can't fully understand how dupal is managing translations. If i add translations/example.pot drupal will take care of everything…
0
votes
1 answer

symfony set local language from code - php

I'm using PHP Symfony and i have a multilanguage website, in order to test some things i want to set website language from code not matter what user choose on the frontend, i did this: $request->setLocale('en'); …
user16050795
0
votes
0 answers

Access table, showing one value, but saving another, cross tables

So lets say I have 3 tables. LangTable [id] [Eng] [Jap] 0 "Fire" "ほのお" ... 12 "Water" "みず" 13 "Math" "Whatever" ... this table is shared by dozzens of other tables, as it only holds the translations of the data for…
Steven Venham
  • 600
  • 1
  • 3
  • 18