how to a translatable string in drupal theme? - drupal-6

I want to put a string as a signature in drupal theme I am working on. the website is multilingual and the string should be translated based on the current language of the website. I don't know how to do it.
my drupal version is 6.
Would you help me?

Wrap your message in the t() function.
http://api.drupal.org/api/drupal/includes!common.inc/function/t/6
Then see this page for a brief guide on localizing:
http://drupal.org/node/322729

Related

How to translate plugin Ultimate member with WPML?

I need help. I created a form with the Ultimate member plugin on a multilingual site. But I have a problem that the form will not be fully translated, some label and placeholder fields will remain in the default language, and some will be translated in a certain language. I went to the translation string option and translated all the strings that didn't automatically translate, but I didn't solve the problem. Can you please help me how to solve this problem?

Customize Search Portlet in Liferay DXP 7

I would like your support in order to get some help in customizing the search component in Liferay DXP 7.0 Enterprise.
I have reviewed all the available documentation but although I have found many articles about the issue, the step by step is not so clear for me.
I need to customize the native search component:
Change the input component to give suggestions while the user is typing the search terms
Change the search result page look and feel.
Anyone ever implemented anything like this?
I know this is an old thread, but StackOverflow keeps showing it as the first open question when I am navigation this particular tag...So here are some pointers, as this is a pretty broad topic...
The search is really confusing for adding customization. Mainly you have to provide some of them as contributors, using the asset framework. following the regular steps to build an asset for the asset publisher you will hit the best place to find documentation about the search contributors.
About the search page, best is to create a new page, besides the default one for extra freedom. As long you use the friendly URL /search it will a basic replacement. In this page you can add everything you need, except for translations for the friendly URL - not great. Another option is to keep the default page (which will not be visible in the build area 7.1.x, but you can edit after you search something and fall inside it).

How generate container page in English language in opencms8.5

I am new in opencms.I am working on application of opencms8.5 . Actually my application already developed in struts and spring and now i have to integrate that with opencms . Actually when i am trying to generate container page in English then it's creating page in Punjabi language. Can some one tell me how i have to do that.
second question is while i am trying to change my folder name in opencms workplace then it's giving error
Runtime error in JPA layer: org.apache.openjpa.persistence.PersistenceException
Please help me .
I have a few questions, the language you want is in the workplace? or the text onlie/offline?
For the wokplace
you just have to chage your language preferences.
For the pages:
I guess your cms is set on English and Punjabi. So you have to search for the porperty locale or locale-availabe (the second one is for change between languages in the elements) in the container page or folder set the locale "en".

Multilingual Search in Alfresco

I want to achieve the multilingual search in Alfresco.
And I know that in Alfresco there is a multilingual function, you could upload the different language version of the document.
But I don't know how can I related them together. That is when I search "cat", I want to get the Japanese version of the document with "ねこ"(means 'cat') in it.
But I can only get the English version as a search result.
Could anyone tell me how can I get all the related document (all the translated version of this document) as search result? Thanks.
Look at the Alfresco Wiki. If you have your locale set to jap, then you should only get the japanese version.
I think you'll need to refer through this documentation in Alfresco. http://docs.alfresco.com/4.0/tasks/tuh-multilingual.html

Translating string in Drupal

I've developed a site in english (admin & front end) but the site needs to be in a Dutch. Locale and i18n modules have been installed.
Dutch has been added to the list of languages and set as default in admin/settings/language.
I'm now wondering how I can translate strings like the date output? For ex, when I print out a date from a view, it still outputs the days and months in English.
In admin/settings/language/configure I've selected "path prefix only" but I don't get the language code in the url's and links. How is this achieved?
Thanks
You can translate month names, days and much more using Translation interface. Navigate to:
Administer -> Site Building -> Translate interface (admin/build/translate) -> Search (admin/build/translate/search)
and use the search form to locate the string you wish to translate.
Since you've already added Dutch to your site, you can download entire Dutch translation on http://localize.drupal.org. Site is currently in beta, so you will have to login using your Drupal.org credentials.
Use this link to export Dutch translation of Drupal. Just make sure you choose All in one file format so you can easily import it in your site using Translate interface -> Import
To get the language code in the URLs you will have to enable Multilingual support for each content type you need translated (admin/content/types) by opening edit and selecting desired option under Workflow settings -> Multilingual support.
After that make sure that you specify Dutch/English language while adding or editing nodes.

Resources