Difference between revisions of "OSGeo Portal Translations"

From OSGeo
Jump to navigation Jump to search
m (initial page for language translation)
 
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
This page describes how to add new language translations to the osgeo.org website.  These abilities are made possible by the [http://drupal.org Drupal] [http://drupal.org/project/localizer localizer] module.
+
{| class="wikitable"
 +
|-
 +
! Archived
 +
|-
 +
| osgeo.org has migrated from Drupal to WordPress
 +
|}
 +
 
 +
 
 +
This page describes how to add new language translations to the old.www.osgeo.org website.  These abilities are made possible by the [http://drupal.org Drupal] [http://drupal.org/project/localizer localizer] module.  If you have questions send them to the [[WebCom]] mailing list.
 +
 
 +
== Adding a Translated Page ==
 +
* Follow along with this [http://osgeo.org/files/tutorial/drupal_translations_low.mp4 Video Tutorial] of the following steps ([http://osgeo.org/files/tutorial/drupal_translations_low.mp4 mp4 video], 29.5MB)
 +
-----
 +
Check the [[Portal Translation Status]] Wiki to find out which pages are still in need of translation.
 +
# A user with 'translator' role must log in through the http://www.osgeo.org/user page.  (see next section re: User / Roles)
 +
# Navigate to the page of interest and a small tab above the content should appear, with the label 'translations'
 +
## '''Note: Do NOT press the EDIT tab for the default English page or change the LOCALE setting for the page.  You must go to the translations tab only and edit your copied page directly.'''
 +
# The translations tab shows a small table where each language has a row, find the row for your language
 +
# If the translation has not yet been created for this page, it will be listed with an option to 'create translation', click the link to do so.  Note: once you click on 'create translation' it will create a new page that is a copy of the default english page, whether you continue to edit it or not.
 +
# If a translation has already been started there will be a title listed under the title column.  To edit that translation click on that title in the table. 
 +
# Enter in information, save page
 +
# Go to [[Portal Translation Status]] and update what you did.  You will need to create another user account to use this wiki website.
 +
The translation is now done and the next time someone views the default english page, they can then click on your language in the language selection menu on the lower left menu.  After this it should run seamlessly.
  
 
== User / Roles ==
 
== User / Roles ==
 
A Role in Drupal is similar to a group of users in other systems - a user belongs to one of more roles that provide access to certain functionality, abilities or privileges.  A special role called '''translator''' has been created for use by contributors who would like to translate content on the site.  Once the role is assigned to a user they can modify the translations of any page.  Here is how it is done:
 
A Role in Drupal is similar to a group of users in other systems - a user belongs to one of more roles that provide access to certain functionality, abilities or privileges.  A special role called '''translator''' has been created for use by contributors who would like to translate content on the site.  Once the role is assigned to a user they can modify the translations of any page.  Here is how it is done:
# Create a new user using [http://www.osgeo.org/admin/user/create this form] - you must have administrative access to do this.  Please talk to the Web Committee to get this access.
 
 
# After creation of user is complete you must edit the user profile.  Find the appropriate one on the [http://www.osgeo.org/admin/user admin/user] page and press 'edit' under the 'operations' column.
 
# After creation of user is complete you must edit the user profile.  Find the appropriate one on the [http://www.osgeo.org/admin/user admin/user] page and press 'edit' under the 'operations' column.
 
# Find the section that lists available roles - check the box next to 'translator' and then press 'submit' button at bottom of page.
 
# Find the section that lists available roles - check the box next to 'translator' and then press 'submit' button at bottom of page.
 
# The user should now be able to log in and create some new content.
 
# The user should now be able to log in and create some new content.
  
== Adding a Translated Page ==
+
== Adding New Language To Side Menu (Admin) ==
This description only applies for normal web pages of content type 'page' - not to events or news items.   
+
To add a new locale to the language list, do the following when logged in as an administrator:
# Navigate to the page of interest and a small tab above the content should appear, with the label 'translations'
+
* Find the language files (aka po files) on the Drupal websiteGoogle for the language and "Drupal", or specifically look for the language code as a .po file.  For example, I searched and found: http://drupal.org/node/154863 that takes me to the Korean "po" file.
# If the translation has not yet been created for this page, it will be listed with an option to 'create translation', click the link to do so
+
* Download it to your local computer
# Enter in information, save page
+
* Goto locale admin page: https://www.osgeo.org/admin/settings/locale
The translation is now done and the next time someone views the default english page, they can then click on your language in the language selection menu on the lower left menu.  After this it should run seamlessly.
+
* '''do not ADD LANGUAGE''', instead use '''IMPORT''' tab.
 +
** On import tab, select the file you downloaded (for example, ko.po)
 +
** Choose the language from the list.
 +
** Leave other settings as default
 +
* Now you should see the new language listed in the sidebar, plus the user interface of the site should change, etc.
  
[[Categories: Drupal]]
+
[[Category: Drupal]]

Latest revision as of 15:26, 6 May 2018

Archived
osgeo.org has migrated from Drupal to WordPress


This page describes how to add new language translations to the old.www.osgeo.org website. These abilities are made possible by the Drupal localizer module. If you have questions send them to the WebCom mailing list.

Adding a Translated Page


Check the Portal Translation Status Wiki to find out which pages are still in need of translation.

  1. A user with 'translator' role must log in through the http://www.osgeo.org/user page. (see next section re: User / Roles)
  2. Navigate to the page of interest and a small tab above the content should appear, with the label 'translations'
    1. Note: Do NOT press the EDIT tab for the default English page or change the LOCALE setting for the page. You must go to the translations tab only and edit your copied page directly.
  3. The translations tab shows a small table where each language has a row, find the row for your language
  4. If the translation has not yet been created for this page, it will be listed with an option to 'create translation', click the link to do so. Note: once you click on 'create translation' it will create a new page that is a copy of the default english page, whether you continue to edit it or not.
  5. If a translation has already been started there will be a title listed under the title column. To edit that translation click on that title in the table.
  6. Enter in information, save page
  7. Go to Portal Translation Status and update what you did. You will need to create another user account to use this wiki website.

The translation is now done and the next time someone views the default english page, they can then click on your language in the language selection menu on the lower left menu. After this it should run seamlessly.

User / Roles

A Role in Drupal is similar to a group of users in other systems - a user belongs to one of more roles that provide access to certain functionality, abilities or privileges. A special role called translator has been created for use by contributors who would like to translate content on the site. Once the role is assigned to a user they can modify the translations of any page. Here is how it is done:

  1. After creation of user is complete you must edit the user profile. Find the appropriate one on the admin/user page and press 'edit' under the 'operations' column.
  2. Find the section that lists available roles - check the box next to 'translator' and then press 'submit' button at bottom of page.
  3. The user should now be able to log in and create some new content.

Adding New Language To Side Menu (Admin)

To add a new locale to the language list, do the following when logged in as an administrator:

  • Find the language files (aka po files) on the Drupal website. Google for the language and "Drupal", or specifically look for the language code as a .po file. For example, I searched and found: http://drupal.org/node/154863 that takes me to the Korean "po" file.
  • Download it to your local computer
  • Goto locale admin page: https://www.osgeo.org/admin/settings/locale
  • do not ADD LANGUAGE, instead use IMPORT tab.
    • On import tab, select the file you downloaded (for example, ko.po)
    • Choose the language from the list.
    • Leave other settings as default
  • Now you should see the new language listed in the sidebar, plus the user interface of the site should change, etc.