[NUUG fiksgatami] [patch] Some updates for the Norwegian Bokmål translation
Petter Reinholdtsen
pere at hungry.com
Tue Feb 15 14:52:12 CET 2011
[Petter Reinholdtsen]
> Thank you to Matthew for commiting the updated translation. After
> todays commit of code fixes, I was able to submit a report on
> <URL: http://fiksgatami-dev.nuug.no/ >. Yay! The map did not work,
> thought. I had to skip using the map.
Found a fix for the map issue. Changed map type from OSM::StreetView
to OSM, and now a map is shown. Still not clickable, though. :)
> Here is an updated translation based on the new texts that showed up
> when I submitted the first problem report. :)
Thank you Matthew for commiting the last fix. Here is a new update.
Now I believe all texts shown by fixmystreet are translated. Several
include the string FixMyStreet in the English text, which probably
should be changed to use the value from conf/general, but I translated
to FiksGataMi for now.
I've also started looking into strings that are not translatable.
There are a few, some easy ones and others need a complete rewrite.
Here is an two easy ones.
diff --git a/templates/website/problem b/templates/website/problem
index aba6b00..f25443e 100644
--- a/templates/website/problem
+++ b/templates/website/problem
@@ -37,7 +37,7 @@
<input type="hidden" name="submit_update" value="1">
<input type="hidden" name="id" value="{{ $input_h{id} }}">
<div><label for="form_name">{{ $name_label }}</label>
-<input type="text" name="name" id="form_name" value="{{ $input_h{name} }}" size="20"> (optional)</div>
+<input type="text" name="name" id="form_name" value="{{ $input_h{name} }}" size="20">{{ $optional }}</div>
{{ if ( $field_errors{email}) {
"<div class='form-error'>$field_errors{email}</div>";
} }}
diff --git a/web/index.cgi b/web/index.cgi
index ca2795e..127cab5 100755
--- a/web/index.cgi
+++ b/web/index.cgi
@@ -1017,7 +1009,7 @@ sub display_problem {
"<p id='sub_map_links'>"
. "<a href=\"http://maps.google.co.uk/maps?output=embed&z=16&q="
. URI::Escape::uri_escape_utf8( $problem->{title} . ' - ' . $google_link )
- . "\@$short_lat,$short_lon\">View on Google Maps</a></p>";
+ . "\@$short_lat,$short_lon\">" . _("View on Google Maps") . "</a></p>";
my $banner;
if ($q->{site} ne 'emptyhomes' && $problem->{state} eq 'confirmed' && $problem->{duration} > 8*7*24*60*60) {
Happy hacking,
--
Petter Reinholdtsen
More information about the fiksgatami
mailing list