print in another lang
i have string with non-eng words.
when i print its reversing the words, how i can display correctly ? if its help i read from json with: json_object_get_string() func (the words that i want) and print with: client_print(0, print_chat, "[%s") |
Re: print in another lang
Quote:
|
Re: print in another lang
Quote:
|
Re: print in another lang
Attach the plugin and JSON file so that we can see and test the code.
|
Re: print in another lang
maybe it happens because of Hebrew symbols?
|
Re: print in another lang
Quote:
after i get json file and read it Code:
public read() {Code:
[{"alertDate":"2021-05-16 18:49:19","title":"התרעות פיקוד העורף","data":"אורים"},{"alertDate":"2021-05-16 18:49:17","title":"התרעות פיקוד העורף","data":"מגן"},{"alertDate":"2021-05-16 18:49:17","title":"התרעות פיקוד העורף","data":"ניר עוז"},{"alertDate":"2021-05-16 18:49:17","title":"התרעות פיקוד העורף","data":"עין הבשור"},{"alertDate":"2021-05-16 18:42:40","title":"התרעות פיקוד העורף","data":"ארז"},{"alertDate":"2021-05-16 18:27:55","title":"התרעות פיקוד העורף","data":"כיסופים"},{"alertDate":"2021-05-16 18:18:00","title":"התרעות פיקוד העורף","data":"אזור תעשייה עד הלום"},{"alertDate":"2021-05-16 18:18:00","title":"התרעות פיקוד העורף","data":"אמונים"},{"alertDate":"2021-05-16 18:18:00","title":"התרעות פיקוד העורף","data":"בית עזרא"},{"alertDate":"2021-05-16 18:18:00","title":"התרעות פיקוד העורף","data":"גבעתי"},{"alertDate":"2021-05-16 18:18:00","title":"התרעות פיקוד העורף","data":"ניצן"},{"alertDate":"2021-05-16 18:18:00","title":"התרעות פיקוד העורף","data":"עזר"},{"alertDate":"2021-05-16 18:18:00","title":"התרעות פיקוד העורף","data":"עזריקם"},{"alertDate":"2021-05-16 18:18:00","title":"התרעות פיקוד העורף","data":"שדה עוזיהו"},{"alertDate":"2021-05-16 18:17:25","title":"התרעות פיקוד העורף","data":"אשדוד - א,ב,ד,ה"},{"alertDate":"2021-05-16 18:17:25","title":"התרעות פיקוד העורף","data":"אשדוד - ג,ו,ז"},{"alertDate":"2021-05-16 18:17:25","title":"התרעות פיקוד העורף","data":"אשדוד - ח,ט,י,יג,יד,טז"},{"alertDate":"2021-05-16 18:17:25","title":"התרעות פיקוד העורף","data":"שתולים"},{"alertDate":"2021-05-16 18:17:24","title":"התרעות פיקוד העורף","data":"אשדוד - יא,יב,טו,יז,מרינה"},{"alertDate":"2021-05-16 18:17:18","title":"התרעות פיקוד העורף","data":"בת הדר"},{"alertDate":"2021-05-16 18:17:18","title":"התרעות פיקוד |
Re: print in another lang
Quote:
|
Re: print in another lang
Quote:
Quote:
|
Re: print in another lang
Unfortunately, I'm unable to test this (and I'm not familiar with how computers handle RTL languages) because apparently my game doesn't use a font that supports Hebrew so I don't see anything in-game. My first guess would be that maybe the game can't handle RTL and LTR languages being mixed in a single line (I'm not even entirely sure it handles RTL at all but I assume it does). What happens if the only text being printed is RTL (Hebrew), with and without the data provided by the JSON (I doubt it has anything to do with the JSON file itself).
|
Re: print in another lang
Quote:
heb its write from right to left eng write from left to right i think this is the problem there any way use reverse loop on the string even char by char and make it right ? |
| All times are GMT -4. The time now is 02:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.