Title: Registering nav menu question
Last modified: May 12, 2018

---

# Registering nav menu question

 *  [Moovio](https://wordpress.org/support/users/moovio/)
 * (@moovio)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/very-basic-question-2/)
 * Hi!
    My name is Peter and I’m taking my first small babysteps in WP development.
 * There’s a lot to be found on many different websites, but there’s one thing I
   can not get an explanation for. It could be that the question has been asked 
   many times before, or that I’m posting this in the wrong section. Would you be
   so kind to guide me further to the correct way of using the forums in that case?
 * While working on customizing existing themes and in the WP documentation, I see
   a reference to a self-defined name within calls, e.g.:
 * ‘myfirsttheme’ in the array below
 * register_nav_menus( array(
    ‘primary’ => __( ‘Primary Menu’, ‘myfirsttheme’ ),‘
   secondary’ => __( ‘Secondary Menu’, ‘myfirsttheme’ ) ) );
 * or here
 * load_theme_textdomain( ‘myfirsttheme’, get_template_directory() . ‘/languages’);
 * I’ve seen developers that use this and some who don’t, but I can not get a clear
   understanding of the use of the parameter. Can someone maybe explain how this
   works?
 * Thanks and rgds,
    Peter

Viewing 1 replies (of 1 total)

 *  [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * (@jakept)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/very-basic-question-2/#post-10273029)
 * This is the ‘text domain’ and part of how translations work in WordPress. The`
   __()` function from your first example is a function that allows the text within
   it to be translated by a language file. The second argument, the text domain,
   is how you tell WordPress that the text belongs to your theme or plugin, so that
   the correct translations are used.
 * So the second bit of code is the theme telling WordPress where the translation
   files for the theme are and for which text domain the translations are for.
 * You can read more about translation and internationalisation here: [https://codex.wordpress.org/I18n_for_WordPress_Developers](https://codex.wordpress.org/I18n_for_WordPress_Developers)
    -  This reply was modified 8 years, 1 month ago by [Jacob Peattie](https://wordpress.org/support/users/jakept/).

Viewing 1 replies (of 1 total)

The topic ‘Registering nav menu question’ is closed to new replies.

## Tags

 * [development](https://wordpress.org/support/topic-tag/development/)
 * [functions](https://wordpress.org/support/topic-tag/functions/)
 * [namespace](https://wordpress.org/support/topic-tag/namespace/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/very-basic-question-2/#post-10273029)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
