Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
Fix subsequent fault of XX-Latn change (closes: #11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Geggus committed Oct 5, 2018
1 parent 1f88f8f commit ded8e7b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
osml10n (2.5.4) unstable; urgency=medium

* Fix subsequent fault of XX-Latn change

-- Sven Geggus <[email protected]> Fri, 05 Oct 2018 13:48:06 +0200

osml10n (2.5.3) unstable; urgency=medium

* further fiddling with the loc_in_brackets feature
Expand Down
6 changes: 6 additions & 0 deletions plpgsql/street_abbrv.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ CREATE or REPLACE FUNCTION osml10n_street_abbrev(longname text, langcode text) R
func text;
result text;
BEGIN
IF (position('-' in langcode)>0) THEN
return longname;
END IF;
IF (position('_' in langcode)>0) THEN
return longname;
END IF;
func ='osml10n_street_abbrev_'|| langcode;
call = 'select ' || func || '(' || quote_nullable(longname) || ')';
execute call into result;
Expand Down

0 comments on commit ded8e7b

Please sign in to comment.