-
AuthorPosts
-
April 4, 2019 at 12:50 am #1086698
Hi,
I once translated the word “Page” and used “/” instead “of”. I remember it was a php line and those were united with dots as you know to make a sentece. However, I could not find it now. Someone asked and you answered this question here as far as I rememeber but I could not find that here. My IQ level is dropping or some files have been changed. Do you know in which php file does this line exist?
Thanks.
April 4, 2019 at 12:06 pm #1087008Hey ilkbaharkunduzu,
If you’re using Enfold 4.5.5, it should be in enfold > framework > php > function-set-avia-frontend.php (line 906):
$output .= "<span class='pagination-meta'>".sprintf(__("Page %d of %d", 'avia_framework'), $paged, $pages)."</span>";
Best regards,
NikkoApril 4, 2019 at 4:42 pm #1087129Nikko,
Yes. That was it. You are fast. Thank you.
Last question for the community: If we want this not to be changed with the updates, should we put this modified .php file in the same folder hierarchy under enfold child theme folder?
Thanks
April 5, 2019 at 3:44 am #1087305Hi,
Yes, the same hierarchy remade in the child theme.
Best regards,
Jordan ShannonApril 5, 2019 at 5:46 am #1087366Hi Jordon,
If statement starts at the 841. This is for navigation. For the overwrite should I start from there to the modified line including finished argument at 941? It is not overwritten. Just the output part starting at 903 is not working either. Normally I add lines. Modification of the php file via child theme is I have to search for I guess.
By the way if you decide to alter this logical statement in the future that would be a problem for the people like me. I wonder if WPML translate this. I will look into it.
Thanks
April 8, 2019 at 3:09 am #1088096Hi ilkbaharkunduzu,
The best way is override function avia_pagination in functions.php of your child theme.
However if there are changes in that function, you’ll not get it unless you update the code as well, but this is rarely happens (in pagination atleast).
As for translation, as long as you keep the same format then it will be translated.Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.