Community
Participate
Working Groups
It seems not to be able to internationalize function descriptions (in function hover, code assist information). Maybe org.eclipse.php.internal.core.phpModel.parser.PHPLanguageModel.loadFile() should be implemented with substituteArgs=true and InputStreamReader(InputStream, Charset) and appropriate path (e.g. "$nl$/Resources/..." ?). This request is for code implementation but internationalized resources such as language pack will be highly appreciated of course.
(In reply to comment #0) > It seems not to be able to internationalize function descriptions (in function > hover, code assist information). > Maybe org.eclipse.php.internal.core.phpModel.parser.PHPLanguageModel.loadFile() > should be implemented with substituteArgs=true and > InputStreamReader(InputStream, Charset) and appropriate path (e.g. > "$nl$/Resources/..." ?). > This request is for code implementation but internationalized resources such as > language pack will be highly appreciated of course. > Do you have a patch?
Created attachment 138539 [details] sample patch Thanks for your attention :-) Here is a sample patch. Though I'm not sure this is appropriate way... because language data files are not merely string resources. (I guess it should be separated in future.)
Created attachment 138540 [details] sample fragment project This is a sample NLS fragment project. Usage: 1. Import project. 2. Run new runtime. 3. Make sure pdt works normally and exit runtime. 4. Edit launch configuration - Arguments - Program arguments "-nl ${target.nl}" -> "-nl ja_JP" 5. Run 6. Close php prpject and open it again (for recreate index). 7. Make sure Japanese appears on code assist description/tooltip/etc.
Thanks, I've submitted your patch to CVS HEAD!
Thanks a lot! One more request... I can create language files in Japanese for php5 by generate.php (thanks!), but I cannot create them for php4/php5.3. How can I create them? Could you please provide generate.php for php4/php5.3?
(In reply to comment #5) > Thanks a lot! > > One more request... > I can create language files in Japanese for php5 by generate.php (thanks!), but > I cannot create them for php4/php5.3. How can I create them? > Could you please provide generate.php for php4/php5.3? > Unfortunately, reflection in PHP is available starting from PHP 5 only, so it is not possible to generate language model for PHP 4. As for PHP 5.3 - it should work, what exactly doesn't work for you?
oops, I'm sorry I misunderstood generate.php is for php5 only. I didn't try it against php5.3. I'll try it. Thanks again :-)
closing