Skip to content

Commit cf107e1

Browse files
committed
Replace famfamfam by emoji flags
1 parent f932d2a commit cf107e1

File tree

255 files changed

+12
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

255 files changed

+12
-4
lines changed
-643 Bytes
Binary file not shown.
-408 Bytes
Binary file not shown.
-604 Bytes
Binary file not shown.
-591 Bytes
Binary file not shown.
-643 Bytes
Binary file not shown.
-600 Bytes
Binary file not shown.
-497 Bytes
Binary file not shown.
-488 Bytes
Binary file not shown.
-428 Bytes
Binary file not shown.
-506 Bytes
Binary file not shown.
-647 Bytes
Binary file not shown.
-403 Bytes
Binary file not shown.
-673 Bytes
Binary file not shown.
-524 Bytes
Binary file not shown.
-663 Bytes
Binary file not shown.
-589 Bytes
Binary file not shown.
-593 Bytes
Binary file not shown.
-585 Bytes
Binary file not shown.
-504 Bytes
Binary file not shown.
-449 Bytes
Binary file not shown.
-497 Bytes
Binary file not shown.
-462 Bytes
Binary file not shown.
-457 Bytes
Binary file not shown.
-675 Bytes
Binary file not shown.
-486 Bytes
Binary file not shown.
-611 Bytes
Binary file not shown.
-639 Bytes
Binary file not shown.
-500 Bytes
Binary file not shown.
-593 Bytes
Binary file not shown.
-526 Bytes
Binary file not shown.
-631 Bytes
Binary file not shown.
-512 Bytes
Binary file not shown.
-443 Bytes
Binary file not shown.
-514 Bytes
Binary file not shown.
-600 Bytes
Binary file not shown.
-628 Bytes
Binary file not shown.
-398 Bytes
Binary file not shown.
-625 Bytes
Binary file not shown.
-528 Bytes
Binary file not shown.
-614 Bytes
Binary file not shown.
-521 Bytes
Binary file not shown.
-367 Bytes
Binary file not shown.
-453 Bytes
Binary file not shown.
-586 Bytes
Binary file not shown.
-450 Bytes
Binary file not shown.
-525 Bytes
Binary file not shown.
-472 Bytes
Binary file not shown.
-483 Bytes
Binary file not shown.
-477 Bytes
Binary file not shown.
-439 Bytes
Binary file not shown.
-563 Bytes
Binary file not shown.
-529 Bytes
Binary file not shown.
-608 Bytes
Binary file not shown.
-428 Bytes
Binary file not shown.
-476 Bytes
Binary file not shown.
-495 Bytes
Binary file not shown.
-545 Bytes
Binary file not shown.
-572 Bytes
Binary file not shown.
-495 Bytes
Binary file not shown.
-620 Bytes
Binary file not shown.
-508 Bytes
Binary file not shown.
-582 Bytes
Binary file not shown.
-500 Bytes
Binary file not shown.
-429 Bytes
Binary file not shown.
-465 Bytes
Binary file not shown.
-508 Bytes
Binary file not shown.
-599 Bytes
Binary file not shown.
-496 Bytes
Binary file not shown.
-653 Bytes
Binary file not shown.
-469 Bytes
Binary file not shown.
-592 Bytes
Binary file not shown.
Binary file not shown.
-532 Bytes
Binary file not shown.
-489 Bytes
Binary file not shown.
-610 Bytes
Binary file not shown.
-648 Bytes
Binary file not shown.
-552 Bytes
Binary file not shown.
-474 Bytes
Binary file not shown.
-545 Bytes
Binary file not shown.
-489 Bytes
Binary file not shown.
-599 Bytes
Binary file not shown.
-637 Bytes
Binary file not shown.
-594 Bytes
Binary file not shown.
-545 Bytes
Binary file not shown.
-490 Bytes
Binary file not shown.
-463 Bytes
Binary file not shown.
-470 Bytes
Binary file not shown.
-493 Bytes
Binary file not shown.
-480 Bytes
Binary file not shown.
-488 Bytes
Binary file not shown.
-537 Bytes
Binary file not shown.
-487 Bytes
Binary file not shown.
-630 Bytes
Binary file not shown.
-493 Bytes
Binary file not shown.
-509 Bytes
Binary file not shown.
-516 Bytes
Binary file not shown.
-645 Bytes
Binary file not shown.
-527 Bytes
Binary file not shown.
-673 Bytes
Binary file not shown.
-537 Bytes
Binary file not shown.
-524 Bytes
Binary file not shown.
-487 Bytes
Binary file not shown.
-432 Bytes
Binary file not shown.
-430 Bytes
Binary file not shown.
-481 Bytes
Binary file not shown.
-431 Bytes
Binary file not shown.
-503 Bytes
Binary file not shown.
-658 Bytes
Binary file not shown.
-515 Bytes
Binary file not shown.
-512 Bytes
Binary file not shown.
-532 Bytes
Binary file not shown.
-420 Bytes
Binary file not shown.
-282 Bytes
Binary file not shown.
-637 Bytes
Binary file not shown.
-473 Bytes
Binary file not shown.
-420 Bytes
Binary file not shown.
-569 Bytes
Binary file not shown.
-510 Bytes
Binary file not shown.
-549 Bytes
Binary file not shown.
-656 Bytes
Binary file not shown.
-577 Bytes
Binary file not shown.
-604 Bytes
Binary file not shown.
-561 Bytes
Binary file not shown.
-592 Bytes
Binary file not shown.
-486 Bytes
Binary file not shown.
-643 Bytes
Binary file not shown.
-616 Bytes
Binary file not shown.
-563 Bytes
Binary file not shown.
-517 Bytes
Binary file not shown.
-520 Bytes
Binary file not shown.
-537 Bytes
Binary file not shown.
-627 Bytes
Binary file not shown.
-466 Bytes
Binary file not shown.
-628 Bytes
Binary file not shown.
-508 Bytes
Binary file not shown.
-481 Bytes
Binary file not shown.
-465 Bytes
Binary file not shown.
-419 Bytes
Binary file not shown.
-432 Bytes
Binary file not shown.
-380 Bytes
Binary file not shown.
-566 Bytes
Binary file not shown.
-448 Bytes
Binary file not shown.
-453 Bytes
Binary file not shown.
-628 Bytes
Binary file not shown.
-664 Bytes
Binary file not shown.
-474 Bytes
Binary file not shown.
-483 Bytes
Binary file not shown.
-492 Bytes
Binary file not shown.
-588 Bytes
Binary file not shown.
-597 Bytes
Binary file not shown.
-655 Bytes
Binary file not shown.
-569 Bytes
Binary file not shown.
-614 Bytes
Binary file not shown.
-420 Bytes
Binary file not shown.
-496 Bytes
Binary file not shown.
-542 Bytes
Binary file not shown.
-529 Bytes
Binary file not shown.
-574 Bytes
Binary file not shown.
-571 Bytes
Binary file not shown.
-584 Bytes
Binary file not shown.
-647 Bytes
Binary file not shown.
-591 Bytes
Binary file not shown.
-537 Bytes
Binary file not shown.
-602 Bytes
Binary file not shown.
-482 Bytes
Binary file not shown.
-508 Bytes
Binary file not shown.
-453 Bytes
Binary file not shown.
-512 Bytes
Binary file not shown.
-443 Bytes
Binary file not shown.
-527 Bytes
Binary file not shown.
-572 Bytes
Binary file not shown.
-639 Bytes
Binary file not shown.
-478 Bytes
Binary file not shown.
-519 Bytes
Binary file not shown.
-397 Bytes
Binary file not shown.
-498 Bytes
Binary file not shown.
-593 Bytes
Binary file not shown.
-538 Bytes
Binary file not shown.
-569 Bytes
Binary file not shown.
-374 Bytes
Binary file not shown.
-689 Bytes
Binary file not shown.
-657 Bytes
Binary file not shown.
-556 Bytes
Binary file not shown.
-472 Bytes
Binary file not shown.
-554 Bytes
Binary file not shown.
-550 Bytes
Binary file not shown.
-473 Bytes
Binary file not shown.
-450 Bytes
Binary file not shown.
-545 Bytes
Binary file not shown.
-495 Bytes
Binary file not shown.
-423 Bytes
Binary file not shown.
-420 Bytes
Binary file not shown.
-533 Bytes
Binary file not shown.
-551 Bytes
Binary file not shown.
-624 Bytes
Binary file not shown.
-608 Bytes
Binary file not shown.
-649 Bytes
Binary file not shown.
-492 Bytes
Binary file not shown.
-542 Bytes
Binary file not shown.
-468 Bytes
Binary file not shown.
-645 Bytes
Binary file not shown.
-510 Bytes
Binary file not shown.
-512 Bytes
Binary file not shown.
-562 Bytes
Binary file not shown.
-436 Bytes
Binary file not shown.
-502 Bytes
Binary file not shown.
-532 Bytes
Binary file not shown.
-527 Bytes
Binary file not shown.
-513 Bytes
Binary file not shown.
-584 Bytes
Binary file not shown.
-501 Bytes
Binary file not shown.
-422 Bytes
Binary file not shown.
-643 Bytes
Binary file not shown.
-624 Bytes
Binary file not shown.
-570 Bytes
Binary file not shown.
-527 Bytes
Binary file not shown.
-562 Bytes
Binary file not shown.
-452 Bytes
Binary file not shown.
-496 Bytes
Binary file not shown.
-638 Bytes
Binary file not shown.
-514 Bytes
Binary file not shown.
-593 Bytes
Binary file not shown.
-495 Bytes
Binary file not shown.
-426 Bytes
Binary file not shown.
-492 Bytes
Binary file not shown.
-617 Bytes
Binary file not shown.
-536 Bytes
Binary file not shown.
-465 Bytes
Binary file not shown.
-642 Bytes
Binary file not shown.
-446 Bytes
Binary file not shown.
-531 Bytes
Binary file not shown.
-571 Bytes
Binary file not shown.
-609 Bytes
Binary file not shown.
-532 Bytes
Binary file not shown.
-515 Bytes
Binary file not shown.
-553 Bytes
Binary file not shown.
-577 Bytes
Binary file not shown.
-528 Bytes
Binary file not shown.
-630 Bytes
Binary file not shown.
-616 Bytes
Binary file not shown.
-474 Bytes
Binary file not shown.
-604 Bytes
Binary file not shown.
-652 Bytes
Binary file not shown.
-554 Bytes
Binary file not shown.
-476 Bytes
Binary file not shown.
-413 Bytes
Binary file not shown.
-593 Bytes
Binary file not shown.
-642 Bytes
Binary file not shown.
-500 Bytes
Binary file not shown.
-574 Bytes
Binary file not shown.

app/helpers/lit/localizations_helper.rb

+9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ def ejs(val)
99
escape_javascript val.to_s
1010
end
1111

12+
def locale_flag locale
13+
locale = locale.to_s.upcase[0,2]
14+
locale = case locale
15+
when 'EN' then 'GB'
16+
else locale
17+
end
18+
locale.tr('A-Z', "\u{1F1E6}-\u{1F1FF}")
19+
end
20+
1221
def allow_wysiwyg_editor?(key)
1322
Lit.all_translations_are_html_safe || key.to_s =~ /(\b|_|\.)html$/
1423
end
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<strong>All localization keys</strong> <%= Lit::LocalizationKey.active.count(:id) %><br/>
22
<% @locales.each do |l| %>
3-
<strong><%= image_tag "lit/famfamfam_flags/#{l.locale[0,2]}.png" %> <%= I18n.t("lit.locale_to_languages.#{l.locale}", :default=>l.locale) %>:</strong> <span title="<%= "#{l.changed_localizations_count}/#{l.all_localizations_count}" %>"><%= l.translated_percentage %>%</span><br/>
3+
<strong><%= locale_flag l.locale %> <%= I18n.t("lit.locale_to_languages.#{l.locale}", :default=>l.locale) %>:</strong> <span title="<%= "#{l.changed_localizations_count}/#{l.all_localizations_count}" %>"><%= l.translated_percentage %>%</span><br/>
44
<% end %>
55

app/views/lit/incomming_localizations/index.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<% @incomming_localizations.each do |il| %>
2626
<tr data-id="<%= il.id %>">
2727
<td colspan="3">
28-
<%= image_tag "lit/famfamfam_flags/#{il.locale_str[0,2]}.png" %>
28+
<%= locale_flag il.locale_str %>
2929
<strong><%= il.full_key %></strong>
3030
</td>
3131
</tr>

app/views/lit/localization_keys/_localizations_list.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<%= render partial: 'localization_row', locals: {localization: Lit.init.cache["#{locale}.#{lk.localization_key}"]} %>
4444
</td>
4545
<td class="locale_row text-center">
46-
<%= image_tag "lit/famfamfam_flags/#{locale[0,2]}.png" %>
46+
<%= locale_flag locale %>
4747
<%= locale %>
4848
<% if localization %>
4949
<%= link_to lit.previous_versions_localization_key_localization_path(lk, localization, format: :js), class: "show_prev_versions #{'hidden' unless versions?(localization)}", remote: true do %>
-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//= link_tree ../../../../../app/assets/images/lit/famfamfam_flags/
21
//= link_directory ../javascripts .js
32
//= link_directory ../stylesheets .css
43

0 commit comments

Comments
 (0)