Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
views $ comments & date not translating
jeongwee
✭✭
Best Answers
-
peregrine MVP
try this just cut it and paste it in locale.php at the bottom. and see if it changes any thing.
$Definition[ '%s view html'] = "help";
$Definition[ '%s views html'] = "help me";I already edited my answer 5 comments back. .
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
2 -
peregrine MVP
'%s comment html',
'%s comments html'
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
1
Answers
Definitions that have a variable in the must include the variable. It is traditionally
%s
.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight
i added
$Definition['%s views'] = '%s 浏览数';
$Definition['%s comments'] = '%s 回复数';
to locales/site_core.php still not translating....
you can add it to or create conf/locale.php - this is the final locale configuration and overrides locale files in other directories.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
theres no locale.php under conf floder , i created a locale.php and added
<?php $Definition['%s views'] = '%s 浏览数'; $Definition['%s comments'] = '%s 回复数'; ?>
to the empty document.still not translating the views and comments to chinese words.
delete the .ini files in you cache folder always - after making css and locale changes if you want to see the correct results.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine I was wondering with definitions sometimes using "double quotes" instead of 'single' works but sometimes it bonks what gives?
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
....................deleted all .ini files and deleted locale.php under conf floder. then cr8 locale.php and added <?php $Definition['%s views'] = '%s 浏览数'; $Definition['%s comments'] = '%s 回复数'; ?> again ..........still not translating...........wats wrong with this .....btw my version is 2.1b1
i also tryed add $Definition['%s views'] = '%s 浏览数'; $Definition['%s comments'] = '%s 回复数'; to vf_zh_CN/definitions.php and vf_zh_CN/site_core.php and delete ini files . also not translating.............anyone can help about this
Just out of curiosity can you try and not close ?>
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
@vrijvlinder
syntax. obviously you have to escape single quotes inside single quotes and vice versa or use differing single vs double if the definition has a single or double inside it. Give an example of your situation. if you put a $variable inside a definition it has to be single quotes - counter intuitive.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@vrijvlinder i tryed yours also not translating =_=
it won't matter with "%s" or '%s' - double or single doesn't matter and I think you will be totally confusing the issue which is a cache issue most likely. Assuming the conf/locale.php is being read and there are no errors in it.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine is it impossible to fixed?
if you do what I say it will.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
image that displayed it can be done was removed .
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Yea that is why peregrine said to put it in the conf folder. Try that again. This is just a replacement of words it is not really a translation so it is very straight forward . You put in the replacement words and they get replaced but the key is putting it in the correct folder so it gets read.
Try again and put in the conf folder the locale.php
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
post the contents of your cache/locale_map.ini
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I'll let you take over V.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
im so noob maybe something i did wrong? see picture=_=
contents of cache/locale_map.ini
[zh-CN]
0 = "E:\wamp\www/plugins/Floor/locale/zh-CN.php"
1 = "E:\wamp\www/locales/vf_zh_CN/archive_core.php"
2 = "E:\wamp\www/locales/vf_zh_CN/bad_defs.php"
3 = "E:\wamp\www/locales/vf_zh_CN/dash_core.php"
4 = "E:\wamp\www/locales/vf_zh_CN/definitions.php"
5 = "E:\wamp\www/locales/vf_zh_CN/site_core.php"
6 = "E:\wamp\www/conf/locale.php"