From ce627e0b141fc4384563ed0014eb772d54c68644 Mon Sep 17 00:00:00 2001 From: Jeau Date: Sat, 19 Oct 2013 14:20:33 +0200 Subject: [PATCH 01/20] Templates internationalization: first step --- curatescape/items/browse.php | 10 +++++----- curatescape/items/show.php | 6 +++--- curatescape/items/tags.php | 2 +- curatescape/tour-builder/tours/browse.php | 4 ++-- curatescape/tour-builder/tours/show.php | 8 ++++---- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/curatescape/items/browse.php b/curatescape/items/browse.php index b02fa5c..c68883c 100644 --- a/curatescape/items/browse.php +++ b/curatescape/items/browse.php @@ -12,17 +12,17 @@ $maptype='queryresults'; } elseif ( ($term) && !($query) ) { - $title = 'Results for subject term "'.$term.'"'; + $title = __('Results for subject term "%s"',$term); $bodyclass .=' queryresults'; $maptype='queryresults'; } elseif ($query) { - $title = (!($advanced) ? 'Search Results for "'.$query.'"':'Advanced Search Results'); + $title = (!($advanced) ? __('Search Results for "%s"',$query) : __('Advanced Search Results')); $bodyclass .=' queryresults'; $maptype='queryresults'; } else{ - $title = 'All '.mh_item_label('plural').''; + $title = __('All ').mh_item_label('plural').''; $bodyclass .=' items stories'; } head(array('maptype'=>$maptype,'title'=>$title,'bodyid'=>'items','bodyclass'=>$bodyclass)); @@ -84,7 +84,7 @@
-

Tags:

+

@@ -108,4 +108,4 @@ - \ No newline at end of file + diff --git a/curatescape/items/show.php b/curatescape/items/show.php index 3b24102..cfc9f52 100644 --- a/curatescape/items/show.php +++ b/curatescape/items/show.php @@ -18,7 +18,7 @@
-

Description

+

@@ -59,7 +59,7 @@
-

Cite this Page

+

@@ -110,4 +110,4 @@ function() { }) - \ No newline at end of file + diff --git a/curatescape/items/tags.php b/curatescape/items/tags.php index 16d16dd..08cc501 100644 --- a/curatescape/items/tags.php +++ b/curatescape/items/tags.php @@ -41,4 +41,4 @@
- \ No newline at end of file + diff --git a/curatescape/tour-builder/tours/browse.php b/curatescape/tour-builder/tours/browse.php index 104e49a..feca0a2 100644 --- a/curatescape/tour-builder/tours/browse.php +++ b/curatescape/tour-builder/tours/browse.php @@ -4,7 +4,7 @@ ?>
-

All :

+

-

Locations for

+

Items as $tourItem ): ?> @@ -67,4 +67,4 @@
- \ No newline at end of file + From b8986af02a172c77d7f6acc044a0ecae24c7879e Mon Sep 17 00:00:00 2001 From: Jeau Date: Sat, 19 Oct 2013 14:42:09 +0200 Subject: [PATCH 02/20] idem --- curatescape/custom.php | 46 +++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/curatescape/custom.php b/curatescape/custom.php index 7e5c8fe..09dcb5e 100644 --- a/curatescape/custom.php +++ b/curatescape/custom.php @@ -50,19 +50,19 @@ function mh_auto_discovery_link_tags() { function mh_item_label_option($which=null){ if($which=='singular'){ - return ($singular=get_theme_option('item_label_singular')) ? $singular : 'Story'; + return ($singular=get_theme_option('item_label_singular')) ? $singular : __('Story'); } elseif($which=='plural'){ - return ($plural=get_theme_option('item_label_plural')) ? $plural : 'Stories'; + return ($plural=get_theme_option('item_label_plural')) ? $plural : __('Stories'); } } function mh_tour_label_option($which=null){ if($which=='singular'){ - return ($singular=get_theme_option('tour_label_singular')) ? $singular : 'Tour'; + return ($singular=get_theme_option('tour_label_singular')) ? $singular : __('Tour'); } elseif($which=='plural'){ - return ($plural=get_theme_option('tour_label_plural')) ? $plural : 'Tours'; + return ($plural=get_theme_option('tour_label_plural')) ? $plural : __('Tours'); } } @@ -95,7 +95,7 @@ function mh_tour_header(){ if($text=get_theme_option('tour_header')){ return $text; }else{ - return 'Take a '.mh_tour_label_option('singular').''; + return __('Take a ').mh_tour_label_option('singular').''; } } /* @@ -130,7 +130,7 @@ function random_item_link($text=null,$class='show'){ $items = get_items(array('random' => 1), 1); $item = $items[0]; if(!$text){ - $text='View a random '.mh_item_label(); + $text=__('View a random ').mh_item_label(); } return link_to($item, 'show', $text, array('class'=>'random-story-link '.$class)); } @@ -150,7 +150,7 @@ function mh_global_header(){ $html .= link_to_home_page(mh_the_logo()); $html .= '
'; - $html .= ''; + $html .= ''; $html .= ''; @@ -412,22 +412,22 @@ function mh_appstore_downloads(){ $ios_app_id = get_theme_option('ios_app_id'); echo ($ios_app_id ? - ' - iOS App Store - ':' - Coming Soon - '); + ''. + __('iOS App Store'). + ' ':''. + __('Coming Soon'). + ' '); $android_app_id = get_theme_option('android_app_id'); echo ($android_app_id ? - ' - Google Play - ':' - Coming Soon - '); + ''. + __('Google Play'). + ' ':''. + __('Coming Soon'). + ' '); }else{ - echo 'iOS + Android Apps Coming Soon!'; + echo ''.__('iOS + Android Apps Coming Soon!').''; } } @@ -441,16 +441,16 @@ function mh_appstore_footer(){ $ios_app_id = get_theme_option('ios_app_id'); $android_app_id = get_theme_option('android_app_id'); if (($ios_app_id != false) && ($android_app_id == false)) { - echo 'Get the app for iPhone'; + echo __('Get the app for iPhone',$ios_app_id); } elseif (($ios_app_id == false) && ($android_app_id != false)) { - echo 'Get the app for Android'; + echo __('Get the app for Android',$android_app_id); } elseif (($ios_app_id != false)&&($android_app_id != false)) { - echo 'Get the app for iPhone and Android'; + echo __('Get the app for iPhone and Android',$ios_app_id,$android_app_id); } else{ - echo 'iPhone + Android Apps Coming Soon!'; + echo __('iPhone + Android Apps Coming Soon!'); } } } @@ -1424,4 +1424,4 @@ function mh_showmap(){ return ''; } -?> \ No newline at end of file +?> From faaf51ec9d573483843d53e9a3798adaa17b17d7 Mon Sep 17 00:00:00 2001 From: Jeau Date: Sat, 19 Oct 2013 15:27:51 +0200 Subject: [PATCH 03/20] Functions internationalization --- curatescape/custom.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/curatescape/custom.php b/curatescape/custom.php index 09dcb5e..e9a58e1 100644 --- a/curatescape/custom.php +++ b/curatescape/custom.php @@ -384,7 +384,7 @@ function mh_simple_search($buttonText = null, $formProperties=array('id'=>'simpl $formProperties['method'] = 'get'; $html = '
' . "\n"; $html .= '
'. "\n\n"; - $html .= __v()->formText('search', $searchQuery, array('type'=>'search','name'=>'search','class'=>'textinput','placeholder'=>'Search '.mh_item_label('plural').'')); + $html .= __v()->formText('search', $searchQuery, array('type'=>'search','name'=>'search','class'=>'textinput','placeholder'=>__('Search ').mh_item_label('plural').'')); $html .= __v()->formSubmit('submit_search', $buttonText); $html .= '
' . "\n\n"; @@ -408,7 +408,7 @@ function mh_simple_search($buttonText = null, $formProperties=array('id'=>'simpl function mh_appstore_downloads(){ if (get_theme_option('enable_app_links')){ - echo '

Downloads

'; + echo '

'.__('Downloads').'

'; $ios_app_id = get_theme_option('ios_app_id'); echo ($ios_app_id ? @@ -465,12 +465,12 @@ function mh_mapfaq(){ $emailincl=($email=get_theme_option('contact_email')) ? 'at '.$email.' ' : ''; $html =''; $html .='
'; - $html .='

Frequently Asked Questions about the map

'; + $html .='

'.__('Frequently Asked Questions about the map').'

'; if((!get_theme_option('map_faq'))){ - $html .='

Are all the locations on '.settings('site_title').' publicly accessible?

'; - $html .='

Not necessarily. It is up to you to determine if any given location is one you can physically visit.

'; - $html .='

How do you choose locations for each '.strtolower(mh_item_label()).'? or The location is wrong!

'; - $html .='

Placing historical '.strtolower(mh_item_label('plural')).' on a map can be tricky. We choose locations based on what we think makes the most sense. Sometimes we get it wrong (and sometimes there is no "right" answer). Feel free to email us '.$emailincl.'with suggestions for improvement.

'; + $html .= __('

Are all the locations on %s publicly accessible?

',settings('site_title')); + $html .= __('

Not necessarily. It is up to you to determine if any given location is one you can physically visit.

'); + $html .= __('

How do you choose locations for each %s? or The location is wrong!

',strtolower(mh_item_label())); + $html .= __('

Placing historical %s$1 on a map can be tricky. We choose locations based on what we think makes the most sense. Sometimes we get it wrong (and sometimes there is no "right" answer). Feel free to email us %s%2 with suggestions for improvement.

',strtolower(mh_item_label('plural')),$emailincl) ; }else{ $html .=get_theme_option('map_faq'); } @@ -503,16 +503,16 @@ function mh_item_map(){ $coords = $lat.','.$lng; // Google Maps for all users - $link = 'View in Google Maps'; + $link = ''.__('View in Google Maps').''; if (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone OS') !== false) { // + Apple Maps for iOS users - $link .= ' Open in iOS Maps'; + $link .= ' '.__('Open in iOS Maps').''; }; if (strpos($_SERVER['HTTP_USER_AGENT'], 'Windows Phone OS') !== false) { // + Bing Maps for Windows Phone users - $link .= ' Open in Bing Maps'; + $link .= ' '.__('Open in Bing Maps').''; }; echo $link; @@ -527,7 +527,7 @@ function mh_item_map(){ */ function mh_the_author(){ if ((get_theme_option('show_author') == true)){ - $html='
@@ -41,4 +41,4 @@ \ No newline at end of file + }?> From a6532088d3f1469b3207dcc02304cb552346d516 Mon Sep 17 00:00:00 2001 From: Jeau Date: Sat, 19 Oct 2013 21:31:55 +0200 Subject: [PATCH 05/20] Fix a bug with multiple variables : %s$1 -> %1$s for example --- curatescape/contribution/contribution/thankyou.php | 4 ++-- curatescape/custom.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/curatescape/contribution/contribution/thankyou.php b/curatescape/contribution/contribution/thankyou.php index 3c0a3ff..c219212 100644 --- a/curatescape/contribution/contribution/thankyou.php +++ b/curatescape/contribution/contribution/thankyou.php @@ -25,9 +25,9 @@
-

Thank You for Contributing!

-

Your contribution will show up in the archive once an administrator approves it. Meanwhile, feel free to or browse the archive.

+

+

browse the archive.',contribution_link_to_contribute('make another contribution'),uri('items/browse')); ?>

diff --git a/curatescape/custom.php b/curatescape/custom.php index 9d36d9d..6178e8d 100644 --- a/curatescape/custom.php +++ b/curatescape/custom.php @@ -447,7 +447,7 @@ function mh_appstore_footer(){ echo __('Get the app for Android',$android_app_id); } elseif (($ios_app_id != false)&&($android_app_id != false)) { - echo __('Get the app for iPhone and Android',$ios_app_id,$android_app_id); + echo __('Get the app for iPhone and Android',$ios_app_id,$android_app_id); } else{ echo __('iPhone + Android Apps Coming Soon!'); @@ -470,7 +470,7 @@ function mh_mapfaq(){ $html .= __('

Are all the locations on %s publicly accessible?

',settings('site_title')); $html .= __('

Not necessarily. It is up to you to determine if any given location is one you can physically visit.

'); $html .= __('

How do you choose locations for each %s? or The location is wrong!

',strtolower(mh_item_label())); - $html .= __('

Placing historical %s$1 on a map can be tricky. We choose locations based on what we think makes the most sense. Sometimes we get it wrong (and sometimes there is no "right" answer). Feel free to email us %s%2 with suggestions for improvement.

',strtolower(mh_item_label('plural')),$emailincl) ; + $html .= __('

Placing historical %1$s on a map can be tricky. We choose locations based on what we think makes the most sense. Sometimes we get it wrong (and sometimes there is no "right" answer). Feel free to email us %1$s with suggestions for improvement.

',strtolower(mh_item_label('plural')),$emailincl) ; }else{ $html .=get_theme_option('map_faq'); } From 10c71c2bb14a3f682ddafbb09ff58f592e93cabe Mon Sep 17 00:00:00 2001 From: Jeau Date: Sun, 20 Oct 2013 09:27:21 +0200 Subject: [PATCH 06/20] Templates internationalization --- curatescape/config.ini | 2 +- curatescape/custom.php | 2 +- curatescape/error/403.php | 6 +++--- curatescape/error/404.php | 6 +++--- curatescape/simple-pages/page/show.php | 4 ++-- curatescape/stealth-index.php | 12 ++++++------ 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/curatescape/config.ini b/curatescape/config.ini index cc6d7b0..f28d866 100644 --- a/curatescape/config.ini +++ b/curatescape/config.ini @@ -239,4 +239,4 @@ custom_footer_html.options.value = "" map_faq.type = "textarea" map_faq.options.label = "Map FAQ (Advanced)" map_faq.options.description = "ADVANCED: Enter custom HTML to replace the default Map FAQ text (click the marker on an individual item page to view). This text should briefly address questions about how the item locations are chosen, as well as provide guidance about whether or not every location on the site is publicly accessible. Best practice is to markup each question as a heading 3 link (

Question

) followed by an answer contained by a p tag (

Answer...

). This text should be VERY BRIEF. It is NOT an appropriate place to elaborate on your project or answer questions not directly pertaining to the map." -map_faq.options.value = "" \ No newline at end of file +map_faq.options.value = "" diff --git a/curatescape/custom.php b/curatescape/custom.php index 6178e8d..82f70dc 100644 --- a/curatescape/custom.php +++ b/curatescape/custom.php @@ -103,7 +103,7 @@ function mh_tour_header(){ */ function mh_global_nav(){ return public_nav_main(array( - 'Home' => uri('/'), + __('Home') => uri('/'), mh_item_label('plural') => uri('items/browse'), mh_tour_label('plural') => uri('/tour-builder/tours/browse/'))); } diff --git a/curatescape/error/403.php b/curatescape/error/403.php index cc5f501..a46f9d1 100644 --- a/curatescape/error/403.php +++ b/curatescape/error/403.php @@ -13,14 +13,14 @@
-

Sorry. Access Forbidden!

+

- \ No newline at end of file + diff --git a/curatescape/error/404.php b/curatescape/error/404.php index 7dbaec0..8d6651a 100644 --- a/curatescape/error/404.php +++ b/curatescape/error/404.php @@ -13,14 +13,14 @@
-

Sorry. The page you are looking for does not exist!

+

- \ No newline at end of file + diff --git a/curatescape/simple-pages/page/show.php b/curatescape/simple-pages/page/show.php index 35a76f5..42310b6 100644 --- a/curatescape/simple-pages/page/show.php +++ b/curatescape/simple-pages/page/show.php @@ -25,7 +25,7 @@
' : ''); $contact_email = get_theme_option('contact_email'); - echo ($contact_email ? '' : ''); + echo ($contact_email ? '
'.__('Email:').' '.$contact_email.'
' : ''); $twitter_username = get_theme_option('twitter_username'); echo ($twitter_username ? '' : ''); $contact_phone = get_theme_option('contact_phone'); - echo ($contact_phone ? '
Phone: '.$contact_phone.'
' : ''); + echo ($contact_phone ? '
'.__('Phone:').' '.$contact_phone.'
' : ''); ?> @@ -88,4 +88,4 @@ Powered by Curatescape - \ No newline at end of file + From 837c6905efbf2e8ad8e33222c50ab742de1a4637 Mon Sep 17 00:00:00 2001 From: Jeau Date: Sun, 20 Oct 2013 19:59:59 +0200 Subject: [PATCH 07/20] Create languages directory Add first pot and fr.po files (incomplete) --- curatescape/languages/curatescape.pot | 420 ++++++++++++++++++++++++++ curatescape/languages/fr.po | 420 ++++++++++++++++++++++++++ 2 files changed, 840 insertions(+) create mode 100644 curatescape/languages/curatescape.pot create mode 100644 curatescape/languages/fr.po diff --git a/curatescape/languages/curatescape.pot b/curatescape/languages/curatescape.pot new file mode 100644 index 0000000..c7d26ab --- /dev/null +++ b/curatescape/languages/curatescape.pot @@ -0,0 +1,420 @@ +# Curatescape internationalization +# Copyright (C) 2013 +# This file is distributed under the same license as the Curatescape package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: custom.php:1233 +msgid " is powered by Omeka + Curatescape, a humanities-centered web and mobile framework available for both Android and iOS devices." +msgstr "" + +#. (settings('site_title') +#: custom.php:470 +msgid "

Are all the locations on %s publicly accessible?

" +msgstr "" + +#. (strtolower(mh_item_label() +#: custom.php:472 +msgid "

How do you choose locations for each %s? or The location is wrong!

" +msgstr "" + +#: custom.php:1036 +msgid "

No featured items are available.

" +msgstr "

Aucun document mis en avant" + +#: custom.php:471 +msgid "

Not necessarily. It is up to you to determine if any given location is one you can physically visit.

" +msgstr "" + +#. (strtolower(mh_item_label('plural') +#: custom.php:473 +msgid "

Placing historical %1$s on a map can be tricky. We choose locations based on what we think makes the most sense. Sometimes we get it wrong (and sometimes there is no \"right\" answer). Feel free to email us %1$s with suggestions for improvement.

" +msgstr "" + +#. (get_option('site_title') +#: contribution/contribution/admin-email.php:1 +msgid "A new contribution to %s has been made." +msgstr "" + +#: custom.php:1147 +msgid "A project by " +msgstr "Un projet de " + +#: stealth-index.php:59 +msgid "About" +msgstr "À-propos" + +#: custom.php:1115 +msgid "About " +msgstr "À-propos" + +#: custom.php:1124 +msgid "About Us" +msgstr "À notre propos" + +#: items/browse.php:20 +msgid "Advanced Search Results" +msgstr "" + +#: items/browse.php:25 +msgid "All " +msgstr "Tout " + +#. (mh_tour_label('plural') +#: tour-builder/tours/browse.php:7 +msgid "All %s:" +msgstr "Tous %s :" + +#: custom.php:698 +msgid "Audio " +msgstr "Audio " + +#: exhibit-builder/exhibits/browse.php:56 exhibit-builder/exhibits/tags.php:26 +msgid "Browse All" +msgstr "" + +#: exhibit-builder/exhibits/tags.php:2 +msgid "Browse Exhibits by Tag" +msgstr "" + +#: exhibit-builder/exhibits/browse.php:56 exhibit-builder/exhibits/tags.php:27 +msgid "Browse by Tag" +msgstr "" + +#. (tour( 'Credits') +#: tour-builder/tours/show.php:18 +msgid "By %s" +msgstr "Par %s" + +#. (settings('site_title') +#: tour-builder/tours/show.php:20 +msgid "By The %s Team" +msgstr "Par l'équipe %s" + +#: custom.php:530 +msgid "By: " +msgstr "Par : " + +#: items/show.php:62 +msgid "Cite this Page" +msgstr "Citer cette page" + +#: custom.php:418 custom.php:426 +msgid "Coming Soon" +msgstr "Prochainement" + +#: stealth-index.php:62 +msgid "Coming Soon!" +msgstr "Prochainement !" + +#: stealth-index.php:67 +msgid "Contact" +msgstr "" + +#: custom.php:1033 +msgid "Continue reading" +msgstr "" + +#: contribution/contribution/contributor-email.php:3 +msgid "Contribution URL (pending review by project staff):" +msgstr "" + +#: contribution/contribution/admin-email.php:3 +msgid "Contribution URL for review:" +msgstr "" + +#: exhibit-builder/exhibits/summary.php:24 +msgid "Credits" +msgstr "" + +#: exhibit-builder/exhibits/summary.php:21 items/show.php:21 +msgid "Description" +msgstr "" + +#: custom.php:706 +msgid "Download Audio:" +msgstr "" + +#: custom.php:411 +msgid "Downloads" +msgstr "Téléchargements" + +#: custom.php:1269 custom.php:1272 +msgid "Edit this item..." +msgstr "" + +#: contribution/contribution/contribute.php:55 +msgid "Email Address" +msgstr "" + +#: stealth-index.php:74 +msgid "Email:" +msgstr "Courriel :" + +#: custom.php:1015 +msgid "Featured " +msgstr "Mis en avant " + +#: custom.php:1145 +msgid "Find us on " +msgstr "Suivez-nous sur " + +#: custom.php:468 +msgid "Frequently Asked Questions about the map" +msgstr "" + +#. ($android_app_id) +#: custom.php:447 +msgid "Get the app for Android" +msgstr "" + +#. ($ios_app_id,$android_app_id) +#: custom.php:450 +msgid "Get the app for iPhone and Android" +msgstr "" + +#. ($ios_app_id) +#: custom.php:444 +msgid "Get the app for iPhone" +msgstr "" + +#: custom.php:424 +msgid "Google Play" +msgstr "" + +#: custom.php:106 +msgid "Home" +msgstr "Accueil" + +#: contribution/contribution/contribute.php:77 +msgid "I agree to the Terms and Conditions." +msgstr "" + +#. (($index+1) +#: custom.php:663 +msgid "Image %s" +msgstr "Image %s" + +#. (uri('contribution/terms') +#: contribution/contribution/contribute.php:74 +msgid "In order to contribute, you must read and agree to the Terms and Conditions." +msgstr "" + +#: tour-builder/tours/show.php:36 +msgid "Locations for " +msgstr "Localisation de " + +#: custom.php:153 +msgid "Menu" +msgstr "Menu" + +#: contribution/contribution/contribute.php:47 +msgid "Name" +msgstr "Nom" + +#. (mh_item_label('plural') +#: custom.php:46 custom.php:47 +msgid "New " +msgstr "" + +#. (mh_item_label() +#. (mh_item_label('plural') +#: custom.php:1049 +msgid "Newest " +msgstr "" + +#: custom.php:515 +msgid "Open in Bing Maps" +msgstr "Ouvrir dans une carte Bing" + +#: custom.php:510 +msgid "Open in iOS Maps" +msgstr "" + +#: error/403.php:23 error/404.php:23 simple-pages/page/show.php:28 +msgid "Pages" +msgstr "" + +#: contribution/contribution/contribute.php:45 +msgid "Personal Information" +msgstr "Informations personnelles" + +#: stealth-index.php:80 +msgid "Phone:" +msgstr "Téléphone :" + +#: custom.php:654 +msgid "Photos" +msgstr "Photos" + +#: common/header.php:91 +msgid "Please enable JavaScript in your browser settings." +msgstr "" + +#: common/footer.php:16 +msgid "Powered by " +msgstr "Propulsé par " + +#: custom.php:1031 +msgid "Preview text not available." +msgstr "" + +#: custom.php:1080 +msgid "Random " +msgstr "" + +#: custom.php:1124 +msgid "Read more " +msgstr "" + +#: custom.php:839 +msgid "Related " +msgstr "" + +#: custom.php:876 +msgid "Related Sources" +msgstr "" + +#. ($term) +#: items/browse.php:15 +msgid "Results for subject term \"%s\"" +msgstr "" + +#: custom.php:374 +msgid "Search" +msgstr "Recherche" + +#: custom.php:387 +msgid "Search " +msgstr "Recherche " + +#. ($query) +#: items/browse.php:20 +msgid "Search Results for \"%s\"" +msgstr "Résultats de la recherche pour \"%s\"" + +#: exhibit-builder/exhibits/summary.php:30 +msgid "Sections" +msgstr "Sections" + +#: custom.php:891 +msgid "Share this Page" +msgstr "Partager cette page" + +#: custom.php:654 custom.php:698 custom.php:743 +msgid "Show " +msgstr "Voir " + +#: error/403.php:16 +msgid "Sorry. Access Forbidden!" +msgstr "Désolé. Accès interdit !" + +#: error/404.php:16 +msgid "Sorry. The page you are looking for does not exist!" +msgstr "Désolé. La page que vous recherhez n'existe pas !" + +#: custom.php:56 +msgid "Stories" +msgstr "Histoires" + +#: custom.php:53 +msgid "Story" +msgstr "Histoire" + +#: custom.php:805 +msgid "Subjects" +msgstr "Sujets" + +#: custom.php:860 +msgid "Tags" +msgstr "Mots clés" + +#: items/browse.php:87 +msgid "Tags:" +msgstr "Mots clés" + +#: custom.php:98 +msgid "Take a " +msgstr "" + +#: custom.php:1063 custom.php:1095 +msgid "Text preview unavailable." +msgstr "" + +#: contribution/contribution/thankyou.php:28 +msgid "Thank You for Contributing!" +msgstr "Merci pour votre contribution !" + +#. (get_option('site_title') +#: contribution/contribution/contributor-email.php:1 +msgid "Thank you for your contribution to %s. Your contribution has been accepted and will be preserved in the digital archive. For your records, the permanent URL for your contribution is noted at the end of this email. Please note that contributions may not appear immediately on the website while they await processing by project staff." +msgstr "" + +#. (settings('site_title') +#: custom.php:557 +msgid "The %s team" +msgstr "L'équipe %s" + +#: exhibit-builder/exhibits/browse.php:78 +msgid "There are no exhibits available yet." +msgstr "Il n'y a pas d'expositions disponible maintenant" + +#: custom.php:62 +msgid "Tour" +msgstr "Parcours" + +#: custom.php:65 +msgid "Tours" +msgstr "Parcours" + +#: custom.php:743 +msgid "Video " +msgstr "Video " + +#: custom.php:133 +msgid "View a random " +msgstr "Voir au hasard " + +#: custom.php:1102 custom.php:998 index.php:19 +msgid "View all " +msgstr "Voir tous " + +#: custom.php:506 +msgid "View in Google Maps" +msgstr "Voir dans Google Maps" + +#: contribution/contribution/contribute.php:36 +msgid "What type of item do you want to contribute?" +msgstr "Quel type de document souhaitez-vous fournir ?" + +#. (contribution_link_to_contribute('make another contribution') +#: contribution/contribution/thankyou.php:30 +msgid "Your contribution will show up in the archive once an administrator approves it. Meanwhile, feel free to %1$s or browse the archive." +msgstr "" + +#: custom.php:928 +msgid "comments powered by " +msgstr "commentaires gérés par " + +#: custom.php:430 +msgid "iOS + Android Apps Coming Soon!" +msgstr "" + +#: custom.php:416 +msgid "iOS App Store" +msgstr "" + +#: custom.php:453 +msgid "iPhone + Android Apps Coming Soon!" +msgstr "" diff --git a/curatescape/languages/fr.po b/curatescape/languages/fr.po new file mode 100644 index 0000000..b4fc319 --- /dev/null +++ b/curatescape/languages/fr.po @@ -0,0 +1,420 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: custom.php:1233 +msgid " is powered by Omeka + Curatescape, a humanities-centered web and mobile framework available for both Android and iOS devices." +msgstr "" + +#. (settings('site_title') +#: custom.php:470 +msgid "

Are all the locations on %s publicly accessible?

" +msgstr "" + +#. (strtolower(mh_item_label() +#: custom.php:472 +msgid "

How do you choose locations for each %s? or The location is wrong!

" +msgstr "" + +#: custom.php:1036 +msgid "

No featured items are available.

" +msgstr "" + +#: custom.php:471 +msgid "

Not necessarily. It is up to you to determine if any given location is one you can physically visit.

" +msgstr "" + +#. (strtolower(mh_item_label('plural') +#: custom.php:473 +msgid "

Placing historical %1$s on a map can be tricky. We choose locations based on what we think makes the most sense. Sometimes we get it wrong (and sometimes there is no \"right\" answer). Feel free to email us %1$s with suggestions for improvement.

" +msgstr "" + +#. (get_option('site_title') +#: contribution/contribution/admin-email.php:1 +msgid "A new contribution to %s has been made." +msgstr "" + +#: custom.php:1147 +msgid "A project by " +msgstr "" + +#: stealth-index.php:59 +msgid "About" +msgstr "" + +#: custom.php:1115 +msgid "About " +msgstr "" + +#: custom.php:1124 +msgid "About Us" +msgstr "" + +#: items/browse.php:20 +msgid "Advanced Search Results" +msgstr "" + +#: items/browse.php:25 +msgid "All " +msgstr "" + +#. (mh_tour_label('plural') +#: tour-builder/tours/browse.php:7 +msgid "All %s:" +msgstr "" + +#: custom.php:698 +msgid "Audio " +msgstr "" + +#: exhibit-builder/exhibits/browse.php:56 exhibit-builder/exhibits/tags.php:26 +msgid "Browse All" +msgstr "" + +#: exhibit-builder/exhibits/tags.php:2 +msgid "Browse Exhibits by Tag" +msgstr "" + +#: exhibit-builder/exhibits/browse.php:56 exhibit-builder/exhibits/tags.php:27 +msgid "Browse by Tag" +msgstr "" + +#. (tour( 'Credits') +#: tour-builder/tours/show.php:18 +msgid "By %s" +msgstr "" + +#. (settings('site_title') +#: tour-builder/tours/show.php:20 +msgid "By The %s Team" +msgstr "" + +#: custom.php:530 +msgid "By: " +msgstr "" + +#: items/show.php:62 +msgid "Cite this Page" +msgstr "" + +#: custom.php:418 custom.php:426 +msgid "Coming Soon" +msgstr "" + +#: stealth-index.php:62 +msgid "Coming Soon!" +msgstr "" + +#: stealth-index.php:67 +msgid "Contact" +msgstr "" + +#: custom.php:1033 +msgid "Continue reading" +msgstr "" + +#: contribution/contribution/contributor-email.php:3 +msgid "Contribution URL (pending review by project staff):" +msgstr "" + +#: contribution/contribution/admin-email.php:3 +msgid "Contribution URL for review:" +msgstr "" + +#: exhibit-builder/exhibits/summary.php:24 +msgid "Credits" +msgstr "" + +#: exhibit-builder/exhibits/summary.php:21 items/show.php:21 +msgid "Description" +msgstr "" + +#: custom.php:706 +msgid "Download Audio:" +msgstr "" + +#: custom.php:411 +msgid "Downloads" +msgstr "" + +#: custom.php:1269 custom.php:1272 +msgid "Edit this item..." +msgstr "" + +#: contribution/contribution/contribute.php:55 +msgid "Email Address" +msgstr "" + +#: stealth-index.php:74 +msgid "Email:" +msgstr "" + +#: custom.php:1015 +msgid "Featured " +msgstr "" + +#: custom.php:1145 +msgid "Find us on " +msgstr "" + +#: custom.php:468 +msgid "Frequently Asked Questions about the map" +msgstr "" + +#. ($android_app_id) +#: custom.php:447 +msgid "Get the app for Android" +msgstr "" + +#. ($ios_app_id,$android_app_id) +#: custom.php:450 +msgid "Get the app for iPhone and Android" +msgstr "" + +#. ($ios_app_id) +#: custom.php:444 +msgid "Get the app for iPhone" +msgstr "" + +#: custom.php:424 +msgid "Google Play" +msgstr "" + +#: custom.php:106 +msgid "Home" +msgstr "" + +#: contribution/contribution/contribute.php:77 +msgid "I agree to the Terms and Conditions." +msgstr "" + +#. (($index+1) +#: custom.php:663 +msgid "Image %s" +msgstr "" + +#. (uri('contribution/terms') +#: contribution/contribution/contribute.php:74 +msgid "In order to contribute, you must read and agree to the Terms and Conditions." +msgstr "" + +#: tour-builder/tours/show.php:36 +msgid "Locations for " +msgstr "" + +#: custom.php:153 +msgid "Menu" +msgstr "" + +#: contribution/contribution/contribute.php:47 +msgid "Name" +msgstr "" + +#. (mh_item_label('plural') +#: custom.php:46 custom.php:47 +msgid "New " +msgstr "" + +#. (mh_item_label() +#. (mh_item_label('plural') +#: custom.php:1049 +msgid "Newest " +msgstr "" + +#: custom.php:515 +msgid "Open in Bing Maps" +msgstr "" + +#: custom.php:510 +msgid "Open in iOS Maps" +msgstr "" + +#: error/403.php:23 error/404.php:23 simple-pages/page/show.php:28 +msgid "Pages" +msgstr "" + +#: contribution/contribution/contribute.php:45 +msgid "Personal Information" +msgstr "" + +#: stealth-index.php:80 +msgid "Phone:" +msgstr "" + +#: custom.php:654 +msgid "Photos" +msgstr "" + +#: common/header.php:91 +msgid "Please enable JavaScript in your browser settings." +msgstr "" + +#: common/footer.php:16 +msgid "Powered by " +msgstr "" + +#: custom.php:1031 +msgid "Preview text not available." +msgstr "" + +#: custom.php:1080 +msgid "Random " +msgstr "" + +#: custom.php:1124 +msgid "Read more " +msgstr "" + +#: custom.php:839 +msgid "Related " +msgstr "" + +#: custom.php:876 +msgid "Related Sources" +msgstr "" + +#. ($term) +#: items/browse.php:15 +msgid "Results for subject term \"%s\"" +msgstr "" + +#: custom.php:374 +msgid "Search" +msgstr "" + +#: custom.php:387 +msgid "Search " +msgstr "" + +#. ($query) +#: items/browse.php:20 +msgid "Search Results for \"%s\"" +msgstr "" + +#: exhibit-builder/exhibits/summary.php:30 +msgid "Sections" +msgstr "" + +#: custom.php:891 +msgid "Share this Page" +msgstr "" + +#: custom.php:654 custom.php:698 custom.php:743 +msgid "Show " +msgstr "" + +#: error/403.php:16 +msgid "Sorry. Access Forbidden!" +msgstr "" + +#: error/404.php:16 +msgid "Sorry. The page you are looking for does not exist!" +msgstr "" + +#: custom.php:56 +msgid "Stories" +msgstr "" + +#: custom.php:53 +msgid "Story" +msgstr "" + +#: custom.php:805 +msgid "Subjects" +msgstr "" + +#: custom.php:860 +msgid "Tags" +msgstr "" + +#: items/browse.php:87 +msgid "Tags:" +msgstr "" + +#: custom.php:98 +msgid "Take a " +msgstr "" + +#: custom.php:1063 custom.php:1095 +msgid "Text preview unavailable." +msgstr "" + +#: contribution/contribution/thankyou.php:28 +msgid "Thank You for Contributing!" +msgstr "" + +#. (get_option('site_title') +#: contribution/contribution/contributor-email.php:1 +msgid "Thank you for your contribution to %s. Your contribution has been accepted and will be preserved in the digital archive. For your records, the permanent URL for your contribution is noted at the end of this email. Please note that contributions may not appear immediately on the website while they await processing by project staff." +msgstr "" + +#. (settings('site_title') +#: custom.php:557 +msgid "The %s team" +msgstr "" + +#: exhibit-builder/exhibits/browse.php:78 +msgid "There are no exhibits available yet." +msgstr "" + +#: custom.php:62 +msgid "Tour" +msgstr "" + +#: custom.php:65 +msgid "Tours" +msgstr "" + +#: custom.php:743 +msgid "Video " +msgstr "" + +#: custom.php:133 +msgid "View a random " +msgstr "" + +#: custom.php:1102 custom.php:998 index.php:19 +msgid "View all " +msgstr "" + +#: custom.php:506 +msgid "View in Google Maps" +msgstr "" + +#: contribution/contribution/contribute.php:36 +msgid "What type of item do you want to contribute?" +msgstr "" + +#. (contribution_link_to_contribute('make another contribution') +#: contribution/contribution/thankyou.php:30 +msgid "Your contribution will show up in the archive once an administrator approves it. Meanwhile, feel free to %1$s or browse the archive." +msgstr "" + +#: custom.php:928 +msgid "comments powered by " +msgstr "" + +#: custom.php:430 +msgid "iOS + Android Apps Coming Soon!" +msgstr "" + +#: custom.php:416 +msgid "iOS App Store" +msgstr "" + +#: custom.php:453 +msgid "iPhone + Android Apps Coming Soon!" +msgstr "" From bda40a09aa94b1c68103e432b60c60106f81cce6 Mon Sep 17 00:00:00 2001 From: Jeau Date: Tue, 22 Oct 2013 09:48:17 +0200 Subject: [PATCH 08/20] Making text of subject links on browse translatable --- curatescape/custom.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curatescape/custom.php b/curatescape/custom.php index db3affb..b0aacee 100644 --- a/curatescape/custom.php +++ b/curatescape/custom.php @@ -833,7 +833,7 @@ function mh_subjects_string(){ $html[]= ''.$subject.''; } - echo '

Subjects: '.implode(", ", $html).'

'; + echo '

'.__('Subjects: ').''.implode(", ", $html).'

'; } } From 18e3d959c16fad3d2e16a4946625108408d23060 Mon Sep 17 00:00:00 2001 From: Jeau Date: Tue, 22 Oct 2013 16:03:23 +0200 Subject: [PATCH 09/20] Internationalization of two forgotten strings in the info bubble map item --- curatescape/custom.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curatescape/custom.php b/curatescape/custom.php index b0aacee..722af1f 100644 --- a/curatescape/custom.php +++ b/curatescape/custom.php @@ -322,7 +322,7 @@ function mh_display_map($type=null){ 'icon': new google.maps.MarkerImage(marker), 'shadow': new google.maps.MarkerImage(shadow), }).click(function() { - jQuery('#map_canvas').gmap('openInfoWindow', { 'content': '
Get Directions
Be sure to read the MAP FAQ.
' }, this); + jQuery('#map_canvas').gmap('openInfoWindow', { 'content': '

MAP FAQ.'); ?>
' }, this); }); }); jQuery.when(makemap).done(function() { @@ -740,7 +740,7 @@ function mh_video_files() { $videoTitle = item_file('Dublin Core','Title'); if ( in_array($videoMime,$videoTypes) ){ - $html = (($videoIndex==0) ? $videoJS.$videoSWF.'

'.__('Video ').''.__('Show ').'

' : ''); + $html = (($videoIndex==0) ? $videoJS.$videoSWF.'

'.__('Videos ').''.__('Show ').'

' : ''); $html .= '
'; $html .= '