I am trying to find strings from some custom php code I added. It displays one sentence for visitors who are not logged in. One part of that sentence is also styled as a button. How can I find the string(s) of this custom code and translate it to English and German. Is this even possible or do I have to solve this in another way?
What is the link to your site?
Here you can see the sentence + button that I want to translate to the other two languages: hidden link
However, I will try to point you in the right direction. In order to make the strings added with custom code translatable, the following conditions have to be met:
- The string must be wrapped in gettext calls.
- There must be a textdomain argument.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.