Developers

Template localization

Voog templates support basic internationalization (i18n) and localization (l10n) features, such as date formatting. For example, when sending dates to output, they can be filtered by using date filters (format_date) where month and day names will be translated to the same language that the current page is in.

Following languages are supported:

  • de - german
  • en - english
  • es - spanish
  • et - estonian
  • fi - finnish
  • fr - french
  • lv - latvian
  • nl - dutch
  • pt - portugese
  • ru - russian
  • da - danish

Built-in translations

Built-in translations that are available for lc and lce filters. Example usage:
{{ 'add_a_comment' | lc }}
  • a_to_z - A → Z
  • add_a_comment - Add a comment
  • add_new_post - Add a new blog post
  • add_product_label - Add product label
  • add_product_page - Add product page
  • add_product - Add product
  • add_share_facebook_button - Add share on Facebook button
  • add_share_linkedin_button - Add share on LinkedIn button
  • add_share_twitter_button - Add share on Twitter button
  • add_to_cart - Add to cart
  • alignment - Alignment
  • all_posts - All posts
  • alt_text - Alt text
  • article - Article
  • author - Author
  • autoplay_interval - Autoplay interval
  • block - Block
  • blocks_settings - Blocks' settings
  • blog - Blog
  • border_around_label - Border around label
  • browse_by_tags - Browse by tags
  • button - Button
  • center - Center
  • change_menu_settings - Change menu settings
  • change_slider_settings - Change slider settings
  • col_max_width - Maximum column width
  • col_min_width - Minimum column width
  • column_distribution - Column distribution
  • columns_are_evenly_distributed - Columns are evenly distributed
  • comment_author_blank - Name is empty!
  • comment_body_blank - Comment is empty!
  • comment_email_blank - E-mail is empty!
  • comment - Comment
  • comments_for_count - Comments
  • comments - Comments
  • continue_reading - Continue reading
  • contrast - Contrast
  • cross_out_label - Cross out label text
  • default - Default
  • design_settings - Design settings
  • disable_lang_flags - Don't use flags
  • draft - Draft
  • drag_picture_for_product_here - Drag a product image here from the "Files" panel.
  • drag_picture_here - Drag a new picture here from the files panel.
  • edit_article_settings - Edit article settings
  • edit_blog_settings - Edit blog settings
  • edit_product_page - Edit product page
  • email_wont_be_published - E-mail won't be published
  • email - E-mail
  • enable_lang_flags - Use flags
  • filter_by_tags - Filter by tags
  • filter_posts - Filter posts
  • footer_login_link - Voog. Make a website.
  • front_page_header - Front page header
  • hide_product_pages_in_menu - Hide product pages in menu
  • high_contrast - High contrast
  • high_to_low - High → Low
  • huge - Extra large
  • image - Image
  • large - Large
  • latest_article - Latest article
  • latest_news - Latest news
  • left - Left
  • line_height - Line height
  • look_closer - Look closer
  • low_to_high - Low → High
  • max_width - Maximum width
  • menu_alignment - Menu alignment
  • menu - Menu
  • name - Name
  • navigation - Navigation
  • newer - Newer
  • news - News
  • next - Next
  • no_comments - No comments
  • no_of_blocks - Number of blocks
  • no_of_columns - Number of columns
  • no_of_slides - Number of slides
  • no_posts_tagged - There are no posts tagged.
  • older_news - Archive
  • older - Older
  • out_of_stock - Out of stock
  • post_has_replies_zero - This post has no replies
  • posts_tagged - Posts tagged
  • previous - Previous
  • product_page - Product page
  • read_more - Read more
  • related_products - Related products
  • replies_zero - No replies
  • restore_defaults - Restore defaults
  • right - Right
  • search_close - Close
  • search_noresults - Your search did not match any documents
  • search_product - Search product
  • search_this_site - Search this site
  • search - Search
  • select_related_product - Select related product
  • select - Select
  • set_the_number_of_blocks - Set the number of blocks
  • share_this_article - Share this article
  • show_product_pages_in_menu - Show product pages in menu
  • show_product_list_pages_in_menu - Show product list pages in menu
  • show_related_articles_by_tags - Show related articles by tags
  • side_always_open - Side — always visible
  • side_menu_width - Side menu width
  • side_opens_on_click - Side — opens on click
  • sign_out - Sign out
  • sort_by_price - Sort by price
  • sort_by_title - Sort by title
  • sort_by - Sort by
  • sort - Sort
  • space_around_columns - Space around columns
  • space_between_columns - Space between columns
  • submit_comment - Submit comment
  • submit - Submit
  • tags - "Tags:"
  • template_settings - Template settings
  • text_size - Text size
  • title_goes_here - Title goes here
  • top_always_visible - Top — always visible
  • top_fixed_header - Top — fixed in header
  • use_arrows_in_live_view - Use right & left arrows in live view
  • use_autoplay_for_changing_slides - Use autoplay for changing slides
  • use_different_titles_on_slides - Use different titles on slides
  • use_fade_effect_on_changing_slides - Use fade effect on changing slides
  • use_navigation_bullets - Use navigation bullets
  • vertical_spacing - Vertical spacing
  • visible_live_preview_visuals - Visible in live & preview mode (only visuals)
  • visually_impaired - Visually impaired
  • write_first_comment - Write first comment
  • write_product_description_here - Enter the product description and add a buy button from the ⊕ below.
  • z_to_a - Z → A
  • ecommerce.invoice.discount - Discount
  • ecommerce.invoice.discount_cart - Discount on all items
  • ecommerce.invoice.discount_cart_and_shipping - Discount on all items and shipping
  • ecommerce.invoice.discount_shipping - Discount on shipping
  • ecommerce.invoice.due_date - Due date
  • ecommerce.invoice.footer_text - Our webstore is built on Voog — make stunning websites and online stores — www.voog.com
  • ecommerce.invoice.invoice_no - Invoice for order
  • ecommerce.invoice.invoice_paid_up - This invoice is paid up
  • ecommerce.invoice.invoiced_on - Invoiced on
  • ecommerce.invoice.item - Item
  • ecommerce.invoice.note - Note
  • ecommerce.invoice.price - Price
  • ecommerce.invoice.quantity - Quantity
  • ecommerce.invoice.recipient - Invoice recipient
  • ecommerce.invoice.shipping - Shipping
  • ecommerce.invoice.title - Invoice
  • ecommerce.invoice.to_be_paid - To be paid
  • ecommerce.invoice.total - Total
  • ecommerce.invoice.total_discount - Total discount
  • ecommerce.invoice.vat - VAT
  • ecommerce.buy_button.add_to_cart - Add to cart
  • ecommerce.buy_button.currently_unavailable - Currently unavailable
  • ecommerce.buy_button.out_of_stock - Out of stock
Built-in translations that are available for the lcc filter that returns translation based on the provided number. Example usage:
{{ 'post_has_replies' | lcc: article.comments_count }}
  • post_has_replies
    • 0 - This post has no replies
    • 1 - This post has 1 reply
    • other - This post has %{count} replies
  • replies
    • 0 - No replies
    • 1 - 1 reply
    • other - %{count} replies
  • ecommerce.items.invoice
    • 1 - item
    • other - %{count} items