• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to translate Theme specific code snippets (Altitude Pro)

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Internationalization and Translations › How to translate Theme specific code snippets (Altitude Pro)

This topic is: not resolved

Tagged: internationalization, shortcode, Translate

  • This topic has 2 replies, 3 voices, and was last updated 10 years ago by ethangreys.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 3, 2015 at 2:06 pm #146580
    saxisme
    Member

    Hello,

    I thought I'd share this info.

    I wanted my site available in different languages and I presume you know already how to translate WP, Genesis, and the Child Theme using any tool you want - from Genesis Translations to Codestyling Localization.

    The problem is that in Altitude Pro there are some sentences that are not "read" by this tool.
    Ex:

    
    $post_meta = 'Written by: [post_author_posts_link] [post_categories before=" · Categorized: "]  [post_tags before=" · Tagged: "]';
    	return $post_meta;
    

    To make it work, just change it this way:

    
    $post_meta = __('Written by: ', 'altitude') .'[post_author_posts_link] [post_categories before=" · ' . __('Categorized: ', 'altitude') . '"]  [post_tags before=" · ' . __('Tags: ', 'altitude') . '"]';
    
    
    May 8, 2015 at 10:32 pm #151132
    Susan
    Moderator

    Thank you for sharing!

    June 17, 2015 at 7:59 pm #156613
    ethangreys
    Member

    Yeah but the problem is when I change the language, the font of text is not suitable for my language. how to solve this problem?

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble