当前位置: 首页>>代码示例>>PHP>>正文


PHP add_translation函数代码示例

本文整理汇总了PHP中add_translation函数的典型用法代码示例。如果您正苦于以下问题:PHP add_translation函数的具体用法?PHP add_translation怎么用?PHP add_translation使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了add_translation函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: profile_fields_setup

/**
 * This function loads a set of default fields into the profile, then triggers a hook letting other plugins to edit
 * add and delete fields.
 *
 * Note: This is a secondary system:init call and is run at a super low priority to guarantee that it is called after all
 * other plugins have initialised.
 */
function profile_fields_setup()
{
    global $CONFIG;
    $profile_defaults = array('description' => 'longtext', 'briefdescription' => 'text', 'location' => 'tags', 'interests' => 'tags', 'skills' => 'tags', 'contactemail' => 'email', 'phone' => 'text', 'mobile' => 'text', 'website' => 'url');
    // TODO: Have an admin interface for this
    $n = 0;
    $loaded_defaults = array();
    while ($translation = get_plugin_setting("admin_defined_profile_{$n}", 'profile')) {
        // Add a translation
        add_translation(get_current_language(), array("profile:admin_defined_profile_{$n}" => $translation));
        // Detect type
        $type = get_plugin_setting("admin_defined_profile_type_{$n}", 'profile');
        if (!$type) {
            $type = 'text';
        }
        // Set array
        $loaded_defaults["admin_defined_profile_{$n}"] = $type;
        $n++;
    }
    if (count($loaded_defaults)) {
        $CONFIG->profile_using_custom = true;
        $profile_defaults = $loaded_defaults;
    }
    $CONFIG->profile = trigger_plugin_hook('profile:fields', 'profile', NULL, $profile_defaults);
}
开发者ID:portokallidis,项目名称:Metamorphosis-Meducator,代码行数:32,代码来源:start.php

示例2: search_advanced_init

/**
 * Initializes the plugin
 *
 * @return void
 */
function search_advanced_init()
{
    // page handler for search actions and results
    elgg_register_page_handler("search_advanced", "search_advanced_page_handler");
    elgg_register_page_handler("search", "search_advanced_search_page_handler");
    // search hooks
    search_advanced_unregister_default_search_hooks();
    search_advanced_register_search_hooks();
    // unregister object:page from search
    elgg_unregister_entity_type("object", "page_top");
    // views
    elgg_extend_view("css/elgg", "css/search_advanced/site");
    elgg_extend_view("js/elgg", "js/search_advanced/site");
    // widgets
    elgg_register_widget_type("search", elgg_echo("search"), elgg_echo("search"), array("profile", "dashboard", "index", "groups"), true);
    elgg_register_widget_type("search_user", elgg_echo("search_advanced:widgets:search_user:title"), elgg_echo("search_advanced:widgets:search_user:description"), array("dashboard", "index"));
    if (elgg_is_active_plugin("categories")) {
        // make universal categories searchable
        add_translation(get_current_language(), array("tag_names:universal_categories" => elgg_echo("categories")));
        elgg_register_tag_metadata_name("universal_categories");
    }
    // hooks and events to clear cache
    // register hooks
    elgg_register_plugin_hook_handler("action", "admin/plugins/activate", "search_advanced_clear_keywords_cache");
    elgg_register_plugin_hook_handler("action", "admin/plugins/deactivate", "search_advanced_clear_keywords_cache");
    elgg_register_plugin_hook_handler("action", "admin/plugins/activate_all", "search_advanced_clear_keywords_cache");
    elgg_register_plugin_hook_handler("action", "admin/plugins/deactivate_all", "search_advanced_clear_keywords_cache");
    elgg_register_plugin_hook_handler("action", "plugins/settings/save", "search_advanced_clear_keywords_cache");
    elgg_register_plugin_hook_handler("register", "menu:search_type_selection", "search_advanced_register_menu_type_selection");
    // register events
    elgg_register_event_handler("upgrade", "system", "search_advanced_clear_keywords_cache");
    // actions
    elgg_register_action("search_advanced/settings/save", dirname(__FILE__) . "/actions/plugins/settings/save.php", "admin");
}
开发者ID:pleio,项目名称:search_advanced,代码行数:39,代码来源:start.php

示例3: profile_manager_profile_override

/**
 * Hook to replace the profile fields
 * 
 * @param $hook_name
 * @param $entity_type
 * @param $return_value
 * @param $parameters
 * @return unknown_type
 */
function profile_manager_profile_override($hook_name, $entity_type, $return_value, $parameters)
{
    global $CONFIG;
    // Get all the custom profile fields
    $options = array("type" => "object", "subtype" => CUSTOM_PROFILE_FIELDS_PROFILE_SUBTYPE, "limit" => false, "owner_guid" => $CONFIG->site_guid);
    if ($entities = elgg_get_entities($options)) {
        $result = array();
        $translations = array();
        $context = elgg_get_context();
        // Make new result
        foreach ($entities as $entity) {
            if ($entity->admin_only != "yes" || elgg_is_admin_logged_in()) {
                $result[$entity->metadata_name] = $entity->metadata_type;
                // should it be handled as tags? TODO: is this still needed? Yes it is, it handles presentation of these fields in listing mode
                if ($context == "search" && ($entity->output_as_tags == "yes" || $entity->metadata_type == "multiselect")) {
                    $result[$entity->metadata_name] = "tags";
                }
            }
            $translations["profile:" . $entity->metadata_name] = $entity->getTitle();
        }
        add_translation(get_current_language(), $translations);
        if (count($result) > 0) {
            $result["custom_profile_type"] = "non_editable";
        }
    }
    return $result;
}
开发者ID:portokallidis,项目名称:Metamorphosis-Meducator,代码行数:36,代码来源:hooks.php

示例4: registerLabels

 /**
  * Registers label translations
  * @return void
  */
 public function registerLabels()
 {
     $message_types = $this->getMessageTypes();
     // Register label translations for custom message types
     foreach ($message_types as $type => $options) {
         $ruleset = $this->getRuleset($type);
         add_translation('en', array($ruleset->getSingularLabel(false) => $ruleset->getSingularLabel('en'), $ruleset->getPluralLabel(false) => $ruleset->getPluralLabel('en')));
     }
 }
开发者ID:n8b,项目名称:VMN,代码行数:13,代码来源:Config.php

示例5: widget_manager_extra_contexts_page_handler

/**
 * Handles the extra contexts page
 *
 * @param array  $page    page elements
 * @param string $handler handler of the current page
 * 
 * @return boolean
 */
function widget_manager_extra_contexts_page_handler($page, $handler)
{
    $result = false;
    $extra_contexts = elgg_get_plugin_setting("extra_contexts", "widget_manager");
    if (widget_manager_is_extra_context($handler)) {
        $result = true;
        // make nice lightbox popup title
        add_translation(get_current_language(), array("widget_manager:widgets:lightbox:title:" . strtolower($handler) => $handler));
        // backwards compatibility
        set_input("handler", $handler);
        include dirname(dirname(__FILE__)) . "/pages/extra_contexts.php";
    }
    return $result;
}
开发者ID:n8b,项目名称:VMN,代码行数:22,代码来源:page_handlers.php

示例6: zhgroups_fields_setup

function zhgroups_fields_setup()
{
    $profile_defaults = array('description' => 'longtext', 'interests' => 'tags', 'country' => 'dropdown', 'state' => 'dropdown', 'city' => 'text');
    $profile_defaults = elgg_trigger_plugin_hook('profile:fields', 'group', NULL, $profile_defaults);
    elgg_set_config('group', $profile_defaults);
    // register any tag metadata names
    foreach ($profile_defaults as $name => $type) {
        if ($type == 'tags') {
            elgg_register_tag_metadata_name($name);
            // only shows up in search but why not just set this in en.php as doing it here
            // means you cannot override it in a plugin
            add_translation(get_current_language(), array("tag_names:{$name}" => elgg_echo("groups:{$name}")));
        }
    }
}
开发者ID:pingwangcs,项目名称:51zhaohu,代码行数:15,代码来源:start.php

示例7: theme_ffd_init

function theme_ffd_init()
{
    elgg_unextend_view("page/elements/header", "search/header");
    elgg_extend_view("css/elgg", "css/theme_ffd/site");
    elgg_extend_view('js/elgg', 'theme_ffd/js/site');
    // Replace the default index page
    elgg_register_plugin_hook_handler("index", "system", "theme_ffd_index");
    elgg_register_plugin_hook_handler("route", "questions", "theme_ffd_route_questions_hook");
    elgg_register_plugin_hook_handler("register", "menu:filter", "theme_ffd_category_filter_menu_hook_handler");
    elgg_register_plugin_hook_handler("register", "menu:ffd_questions_alt", "theme_ffd_questions_alt_menu_hook_handler");
    elgg_register_plugin_hook_handler("register", "menu:ffd_questions_body", "theme_ffd_questions_body_menu_hook_handler");
    elgg_register_plugin_hook_handler("register", "menu:entity", "theme_ffd_entity_hook");
    // pagehandlers
    elgg_register_page_handler("profile", "theme_ffd_profile_page_handler");
    elgg_register_page_handler("cafe", "theme_ffd_cafe_page_handler");
    elgg_register_page_handler("login", "theme_ffd_index");
    // actions
    $actions_base = dirname(__FILE__) . "/actions/cafe";
    elgg_register_action("cafe/save", "{$actions_base}/save.php");
    elgg_register_action("cafe/delete", "{$actions_base}/delete.php");
    // register objects
    elgg_register_menu_item("site", array("name" => 'cafe', "text" => elgg_echo('cafe'), "href" => 'cafe'));
    elgg_register_entity_type("object", "cafe");
    elgg_register_entity_url_handler("object", "cafe", "theme_ffd_cafe_url");
    elgg_register_plugin_hook_handler('register', 'menu:annotation', 'theme_ffd_annotation_menu_setup');
    elgg_register_plugin_hook_handler("register", 'menu:filter', 'theme_ffd_cafe_filter_menu_handler');
    //add a widget
    elgg_register_widget_type("ffd_stats", elgg_echo("ffd_theme:widgets:ffd_stats:title"), elgg_echo("ffd_theme:widgets:ffd_stats:description"), "index");
    elgg_register_widget_type("recent_questions", elgg_echo("ffd_theme:widgets:recent_questions:title"), elgg_echo("ffd_theme:widgets:recent_questions:description"), "index");
    elgg_register_widget_type("recent_cafe", elgg_echo("ffd_theme:widgets:recent_cafe:title"), elgg_echo("ffd_theme:widgets:recent_cafe:description"), "index");
    elgg_register_widget_type("ask_question", elgg_echo("ffd_theme:widgets:ask_question:title"), elgg_echo("ffd_theme:widgets:ask_question:description"), "index");
    elgg_register_widget_type("ffd_datetime", elgg_echo("date:month:" . date("m"), array(date("j"))), elgg_echo("ffd_theme:widgets:ffd_datetime:description"), "index");
    elgg_register_widget_type("ffd_videos", elgg_echo("ffd_theme:widgets:ffd_videos:title"), elgg_echo("ffd_theme:widgets:ffd_videos:description"), "index");
    // custom translations
    add_translation(get_current_language(), array("questions:add" => elgg_echo("theme_ffd:questions:add")));
}
开发者ID:pleio,项目名称:theme_ffd,代码行数:36,代码来源:start.php

示例8: array

<?php

/**
 * Home english language file
 */
$english = array('people:people' => 'People', 'item:object:people' => 'People');
add_translation('en', $english);
开发者ID:elainenaomi,项目名称:labxp2014,代码行数:7,代码来源:en.php

示例9: array

<?php

/**
 * Chat German language file.
 */
$german = array('chat' => 'Chat', 'chat:chats' => 'Chats', 'chat:view:all' => 'Zeige alle Chats', 'chat:chat' => 'Chat', 'item:object:chat' => 'Chat', 'item:object:chat_message' => 'Chat-Nachricht', 'chat:none' => 'Keine Chats', 'chat:more' => 'Zeige mehr', 'chat:title:user_chats' => '%s\'s Chats', 'chat:title:all_chats' => 'Alle Seiten-Chats', 'chat:title:friends' => 'Freunde Chats', 'chat:messages' => 'Chat-Nachrichten', 'chat:members' => 'Teilnehmer hinzufügen', 'chat:members:add' => 'Teilnehmer hinzufügen', 'chat:leave' => 'Verlassen', 'chat:leave:confirm' => 'Bist Du sicher, dass Du diesen Chat dauerhaft verlassen willst? Nach dem Verlassen kannst Du an diesem Chat nicht mehr teilnehmen.', 'chat:members:more' => "+%s andere", 'chat:unread_message' => '%s ungelesen', 'chat:unread_messages' => '%s ungelesen', 'chat:group' => 'Gruppen Chat', 'chat:enablechat' => 'Ermögliche Gruppen Chat', 'chat:write' => 'Starte einen Chat', 'chat:message:send' => 'Senden', 'chat:add' => 'Starte einen Chat', 'chat:edit' => 'Bearbeite Chat', 'chat:members:manage' => 'Teilnehmer hinzufügen/löschen', 'chat:delete:confirm' => 'Willst Du wirklich diesen Chat und alle Nachrichten darin entfernen?', 'chat:title' => 'Chat Titel', 'chat:message' => 'Nachricht', 'chat:message:saved' => 'Chat gespeichert', 'chat:message:deleted' => 'Chat gelöscht', 'chat:message:chat_message:saved' => 'Nachricht gespeichert', 'chat:message:chat_message:deleted' => 'Nachricht gelöscht', 'chat:message:members:saved' => 'Teilnehmer hinzugefügt', 'chat:message:members:saved:plurar' => '%s Teinehmer hinzugefügt', 'chat:message:left' => 'Du hast den Chat verlassen.', 'chat:error:cannot_save' => 'Chat kann nicht gestartet werden.', 'chat:error:cannot_save_message' => 'Nachricht konnte nicht gespeichert werden.', 'chat:error:cannot_write_to_container' => 'Unzureichender Zugang um eine Gruppen-Chat zu starten.', 'chat:error:cannot_add_member' => 'Fehler beim Hinzufügen des Benutzers %s zum Chat.', 'chat:error:cannot_delete' => 'Chat kann nicht gelöscht werden.', 'chat:error:missing:title' => 'Bitte gebe einen Titel an!', 'chat:error:missing:members' => 'Keine Teilnehmer ausgewählt!', 'chat:error:missing:message' => 'Enter a message', 'chat:error:missing:container_guid' => 'Cannot find the chat', 'chat:error:cannot_edit_post' => 'Dieser Chat ist möglicherweise nicht vorhanden, oder Sie haben keine Berechtigung, diesen zu bearbeiten.', 'chat:error:cannot_leave' => 'Fehler beim Verlassen des Chats', 'river:create:object:chat' => '%s startete den Chat %s', 'chat:notification:subject:newchat' => 'Ein neuer Chat', 'chat:notification:newchat' => '
%s hat dich zum Chat "%s" hinzugefügt.

Nachrichten im Chat anzeigen und senden:
%s
', 'chat:widget:description' => 'Deine aktuellen Chat-Nachrichten anzeigen', 'chat:morechats' => 'Weitere Chats', 'chat:numbertodisplay' => 'Anzahl der anzuzeigenden Chat-Nachrichten', 'chat:nochats' => 'Keine Chat-Nachrichten');
add_translation('de', $german);
开发者ID:juho-jaakkola,项目名称:elgg-chat,代码行数:12,代码来源:de.php

示例10: array

<?php

$fr_array = array('beechat:icons:home' => 'Accueil', 'beechat:contacts:button' => 'Chat', 'beechat:availability:available' => 'Disponible', 'beechat:availability:dnd' => 'Ne pas déranger', 'beechat:availability:away' => 'Absent', 'beechat:availability:xa' => 'Absence prolongée', 'beechat:availability:offline' => 'Hors ligne', 'beechat:connection:state:offline' => 'Hors ligne', 'beechat:connection:state:connecting' => 'Connexion...', 'beechat:connection:state:authenticating' => 'Authentification...', 'beechat:connection:state:online' => 'En ligne', 'beechat:connection:state:failed' => 'Échec', 'beechat:connection:state:disconnecting' => 'Déconnexion...', 'beechat:chat:self' => 'Moi', 'beechat:chat:composing' => ' est en train d\'écrire.', 'beechat:box:minimize' => 'Diminuer', 'beechat:box:close' => 'Fermer', 'beechat:box:showhide' => 'Montrer/Cacher cette fenêtre de chat', 'beechat:enabled' => 'Chat activé', 'beechat:disabled' => 'Chat désactivté', 'beechat:enablechat' => 'Activer le chat', 'beechat:disablechat' => 'Désactivé le chat');
add_translation('fr', $fr_array);
开发者ID:beechannels,项目名称:beechat,代码行数:4,代码来源:fr.php

示例11: array

<?php

/**
 * Elgg profile plugin spanish language pack
 * Formal spanish version by LeonardoA
 */
$spanish = array('profile' => 'Perfil', 'profile:notfound' => 'No pudimos encontrar el perfil solicitado.');
add_translation('es', $spanish);
开发者ID:socialweb,项目名称:PiGo,代码行数:8,代码来源:es.php

示例12: array

<?php

$english = array('group_tools:decline' => "Decline", 'group_tools:revoke' => "Revoke", 'group_tools:add_users' => "Add users", 'group_tools:in' => "in", 'group_tools:remove' => "Remove", 'group_tools:clear_selection' => "Clear selection", 'group_tools:all_members' => "All members", 'group_tools:joinrequest:already' => "Revoke membership request", 'group_tools:joinrequest:already:tooltip' => "You already requested to join this group, click here to revoke this request", 'group_tools:menu:mail' => "Mail Members", 'group_tools:menu:invitations' => "Manage invitations", 'group_tools:settings:admin_create' => "Limit the creation of groups to Site administrators", 'group_tools:settings:admin_create:description' => "Setting this to 'Yes' will make the creation of a new group impossible for a normal user of your site.", 'group_tools:settings:admin_transfer' => "Allow group owner transfer", 'group_tools:settings:admin_transfer:admin' => "Site admin only", 'group_tools:settings:admin_transfer:owner' => "Group owners and site admins", 'group_tools:settings:multiple_admin' => "Allow multiple group admins", 'group_tools:settings:invite' => "Allow all users to be invited (not just friends)", 'group_tools:settings:invite_email' => "Allow all users to be invited by e-mail address", 'group_tools:settings:invite_csv' => "Allow all users to be invited by CSV-file", 'group_tools:settings:mail' => "Allow group mail (allows group admins to send a message to all members)", 'group_tools:settings:listing' => "Default group listing tab", 'group_tools:settings:search_index' => "Allow closed groups to be indexed by search engines", 'group_tools:settings:auto_notification' => "Automatically enable group notification on group join", 'group_tools:settings:auto_join' => "Auto join groups", 'group_tools:settings:auto_join:description' => "New users will automaticly join the following groups", 'group_tools:groups:invite:body' => "Hi %s,\n\n%s invited you to join the '%s' group. \n%s\n\nClick below to view your invitations:\n%s", 'group_tools:groups:invite:add:subject' => "You've been added to the group %s", 'group_tools:groups:invite:add:body' => "Hi %s,\n\t\n%s added you to the group %s.\n%s\n\nTo view the group click on this link\n%s", 'group_tools:groups:invite:email:subject' => "You've been invited for the group %s", 'group_tools:groups:invite:email:body' => "Hi,\n\n%s invited you to join the group %s on %s.\n%s\n\nIf you don't have an account on %s please register here\n%s\n\nIf you already have an account or after you registered, please click on the following link to accept the invitation\n%s\n\nYou can also go to All site groups -> Group invitations and enter the following code:\n%s", 'group_tools:notify:transfer:subject' => "Administration of the group %s has been appointed to you", 'group_tools:notify:transfer:message' => "Hi %s,\n\t\t\n%s has appointed you as the new administrator of the group %s. \n\nTo visit the group please click on the following link:\n%s", 'group_tools:group:edit:profile' => "Group profile / tools", 'group_tools:group:edit:other' => "Other options", 'group_tools:admin_transfer:title' => "Transfer the ownership of this group", 'group_tools:admin_transfer:transfer' => "Transfer group ownership to", 'group_tools:admin_transfer:myself' => "Myself", 'group_tools:admin_transfer:submit' => "Tranfser", 'group_tools:admin_transfer:no_users' => "No members or friends to transfer ownership to.", 'group_tools:admin_transfer:confirm' => "Are you sure you wish to transfer ownership?", 'group_tools:auto_join:title' => "Auto join options", 'group_tools:auto_join:add' => "%sAdd this group%s to the auto join groups. This will mean that new users are automaticly added to this group on registration.", 'group_tools:auto_join:remove' => "%sRemove this group%s from the auto join groups. This will mean that new users will no longer automaticly join this group on registration.", 'group_tools:auto_join:fix' => "To make all site members a member of this group, please %sclick here%s.", 'group_tools:multiple_admin:group_admins' => "Group admins", 'group_tools:multiple_admin:profile_actions:remove' => "Remove group admin", 'group_tools:multiple_admin:profile_actions:add' => "Add group admin", 'group_tools:multiple_admin:group_tool_option' => "Enable group admins to assign other group admins", 'group_tools:profile_widgets:title' => "Show group profile widgets to non members", 'group_tools:profile_widgets:description' => "This is a closed group. Default no widgets are shown to non members. Here you can configure if you whish to change that.", 'group_tools:profile_widgets:option' => "Allow non members to view widgets on the group profile page:", 'group_tools:mail:message:from' => "From group", 'group_tools:mail:title' => "Send a mail to the group members", 'group_tools:mail:form:recipients' => "Number of recipients", 'group_tools:mail:form:members:selection' => "Select individual members", 'group_tools:mail:form:title' => "Subject", 'group_tools:mail:form:description' => "Body", 'group_tools:mail:form:js:members' => "Please select at least one member to send the message to", 'group_tools:mail:form:js:description' => "Please enter a message", 'group_tools:groups:invite:title' => "Invite users to this group", 'group_tools:groups:invite' => "Invite users", 'group_tools:group:invite:friends:select_all' => "Select all friends", 'group_tools:group:invite:friends:deselect_all' => "Deselect all friends", 'group_tools:group:invite:users' => "Find user(s)", 'group_tools:group:invite:users:description' => "Enter a name or username of a site member and select him/her from the list", 'group_tools:group:invite:users:all' => "Invite all site members to this group", 'group_tools:group:invite:email' => "Using e-mail address", 'group_tools:group:invite:email:description' => "Enter a valid e-mail address and select it from the list", 'group_tools:group:invite:csv' => "Using CSV upload", 'group_tools:group:invite:csv:description' => "You can upload a CSV file with users to invite.<br />The format must be: displayname;e-mail address. There shouldn't be a header line.", 'group_tools:group:invite:text' => "Personal note (optional)", 'group_tools:group:invite:add:confirm' => "Are you sure you wish to add these users directly?", 'group_tools:group:invite:resend' => "Resend invitations to users who already have been invited", 'group_tools:groups:invitation:code:title' => "Group invitation by e-mail", 'group_tools:groups:invitation:code:description' => "If you have received an invitation to join a group by e-mail, you can enter the invitation code here to accept the invitation. If you click on the link in the invitation e-mail the code will be entered for you.", 'group_tools:groups:membershipreq:requests' => "Membership requests", 'group_tools:groups:membershipreq:invitations' => "Outstanding invitations", 'group_tools:groups:membershipreq:invitations:none' => "No outstanding invitations", 'group_tools:groups:membershipreq:invitations:revoke:confirm' => "Are you sure you wish to revoke this invitation", 'group_tools:group:invitations:request' => "Outstanding membership requests", 'group_tools:group:invitations:request:revoke:confirm' => "Are you sure you wish to revoke your membership request?", 'group_tools:group:invitations:request:non_found' => "There are no outstanding membership requests at this time", 'group_tools:groups:sorting:alphabetical' => "Alphabetical", 'group_tools:groups:sorting:open' => "Open", 'group_tools:groups:sorting:closed' => "Closed", 'group_tools:action:error:input' => "Invalid input to perform this action", 'group_tools:action:error:entities' => "The given GUIDs didn't result in the correct entities", 'group_tools:action:error:entity' => "The given GUID didn't result in a correct entity", 'group_tools:action:error:edit' => "You don't have access to the given entity", 'group_tools:action:error:save' => "There was an error while saving the settings", 'group_tools:action:success' => "The settings where saved successfully", 'group_tools:action:admin_transfer:error:access' => "You're not allowed to transfer ownership of this group", 'group_tools:action:admin_transfer:error:self' => "You can't transfer onwership to yourself, you're already the owner", 'group_tools:action:admin_transfer:error:save' => "An unknown error occured while saving the group, please try again", 'group_tools:action:admin_transfer:success' => "Group ownership was successfully transfered to %s", 'group_tools:action:toggle_admin:error:group' => "The given input doesn't result in a group or you can't edit this group or the user is not a member", 'group_tools:action:toggle_admin:error:remove' => "An unknown error occured while removing the user as a group admin", 'group_tools:action:toggle_admin:error:add' => "An unknown error occured while adding the user as a group admin", 'group_tools:action:toggle_admin:success:remove' => "The user was successfully removed as a group admin", 'group_tools:action:toggle_admin:success:add' => "The user was successfully added as a group admin", 'group_tools:action:mail:success' => "Message succesfully send", 'group_tools:action:invite:error:invite' => "No users were invited (%s already invited, %s already a member)", 'group_tools:action:invite:error:add' => "No users were invited (%s already invited, %s already a member)", 'group_tools:action:invite:success:invite' => "Successfully invited %s users (%s already invited and %s already a member)", 'group_tools:action:invite:success:add' => "Successfully added %s users (%s already invited and %s already a member)", 'group_tools:action:groups:email_invitation:error:input' => "Please enter an invitation code", 'group_tools:action:groups:email_invitation:error:code' => "The entered invitation code is no longer valid", 'group_tools:action:groups:email_invitation:error:join' => "An unknown error occured while joining the group %s, maybe you're already a member", 'group_tools:action:groups:email_invitation:success' => "You've successfully joined the group", 'group_tools:action:toggle_auto_join:error:save' => "An error occured while saving the new settings", 'group_tools:action:toggle_auto_join:success' => "The new settings were saved successfully", 'group_tools:action:fix_auto_join:success' => "Group membership fixed: %s new members, %s were already a member and %s failures");
add_translation("en", $english);
$group_river_widget = array('widgets:group_river_widget:title' => "Group activity", 'widgets:group_river_widget:description' => "Shows the activity of a group in a widget", 'widgets:group_river_widget:edit:num_display' => "Number of activities", 'widgets:group_river_widget:edit:group' => "Select a group", 'widgets:group_river_widget:edit:no_groups' => "You need to be a member of at least one group to use this widget", 'widgets:group_river_widget:view:not_configured' => "This widget is not yet configured", 'widgets:group_river_widget:view:more' => "Activity in the '%s' group", 'widgets:group_river_widget:view:noactivity' => "We could not find any activity.");
add_translation("en", $group_river_widget);
$group_members_widget = array('widgets:group_members:title' => "Group members", 'widgets:group_members:description' => "Shows the members of this group", 'widgets:group_members:edit:num_display' => "How many members to show", 'widgets:group_members:view:no_members' => "No group members found");
add_translation("en", $group_members_widget);
$group_invitations_widget = array('widgets:group_invitations:title' => "Group invitations", 'widgets:group_invitations:description' => "Shows the outstanding group invitations for the current user");
add_translation("en", $group_invitations_widget);
$index_discussions_widget = array('widgets:index_discussions:description' => "Shows the latest group discussions", 'widgets:index_discussions:more' => "View more discussions");
add_translation("en", $index_discussions_widget);
$featured_groups_widget = array('widgets:featured_groups:description' => "Shows a random list of featured groups", 'widgets:featured_groups:edit:show_random_group' => "Show a random non-featured group");
add_translation("en", $featured_groups_widget);
开发者ID:rijojoy,项目名称:MyIceBerg,代码行数:14,代码来源:en.php

示例13: array

<?php

/*
*
*Translation English for Follow Tag
*
*/
$german = array('river:tags' => 'Aktivität - Meine Tags', 'follow_tags:title' => 'Folge Tags', 'follow_tags:sidebar:title' => 'Folge Tags Einstellungen', 'follow_tags:tab:title' => 'Meine Tags', 'follow_tags:noactivity' => 'Keine Aktivität', 'follow_tags:save:error' => 'Keine Tags gespeichert!', 'follow_tags:save:message' => 'Tags gespeichert!', 'follow_tags:tags_input:add' => 'Tag hinzufügen', 'follow_tags:settings:minChar' => 'Mindestanzahl Zeichen für autocomplete', 'follow_tags:settings:threshold' => 'Grad der Vernetzung der Tags für autocomplete', 'follow_tags:settings:defaultTags' => 'Voreingestellte tags', 'follow_tags:settings:tagLimit' => 'Maximale Anzahl an tags (0 für unbegrenzt)', 'follow_tags:settings:removeConfirmation' => 'Tag löschen zwei mal ausführen', 'follow_tags:settings:caseSensitive' => 'Groß- Kleinschreibung berücksichtigen', 'follow_tags:settings:allowSpaces' => 'Leerzeichen im Tag erlauben', 'follow_tags:settings:followTags' => 'Follow-tags-Funktion verwenden', 'follow_tags:settings:title' => 'Folge Tags Einstellungen', 'follow_tags:settings:title:tags' => 'Meine Tags', 'follow_tags:settings:title:notify' => 'Benachrichtigung Einstellungen', 'follow_tags:settings:notify:description' => 'Benachrichtige mich, wenn zugehörige Inhalte ertellt wurden.', 'follow_tags:notags' => 'Sie folgen bisher keinen Tags oder es werden keine Einträge zu Ihren Tags gefunden.', 'follow_tags:notags:settings' => 'Folge Tags Einstellungen', 'follow_tags:notification:subject' => 'Neuer Inhalt mit passendem Tag', 'follow_tags:notification:body' => 'Es wurde ein neuer Inhalt mit übereinstimmenden Tags gefunden.', 'follow_tags:notification:body:creator' => ': ', 'follow_tags:changesettings' => 'Tags bearbeiten', 'item:object:FollowTags' => 'Folge Tags');
add_translation("de", $german);
开发者ID:epsylon,项目名称:Hydra-dev,代码行数:9,代码来源:de.php

示例14: add_translation

<?php

add_translation('en', array('gallery_field:edit_images' => "Edit attached photos", 'gallery_field:delete_confirm' => "item(s) will be deleted. Continue?", 'gallery_field:delete_empty' => "No one photo selected", 'gallery_field:editor_preview' => "For editing photos select one of options", 'gallery_field:delete_info' => "Choose photos for deleting. Photos markered red color will be deleted", 'gallery_field:sort_info' => "Sorting enabled. Sort photos as you want.", 'gallery_field:enable_blog' => "Enable gallery field for blog posts?", 'gallery_field:enable_pages' => "Enable gallery field for pages?", "gallery_field:loading" => "Uploading... Do not reload the page.", 'gallery_field:only_jpg' => "Only jpg files supported", 'gallery_field:bad_file' => "Bad jpg file", 'gallery_field:files_uploaded' => "Files uploaded", 'gallery_field:max_upload_exceed' => "File too big"));
开发者ID:epsylon,项目名称:Hydra-dev,代码行数:3,代码来源:en.php

示例15: array

<?php

$en_array = array('beechat:icons:home' => 'Home', 'beechat:contacts:button' => 'Chat', 'beechat:availability:available' => 'Available', 'beechat:availability:dnd' => 'Do not disturb', 'beechat:availability:away' => 'Away', 'beechat:availability:xa' => 'Extended away', 'beechat:availability:offline' => 'Offline', 'beechat:connection:state:offline' => 'Offline', 'beechat:connection:state:connecting' => 'Connecting...', 'beechat:connection:state:authenticating' => 'Authenticating...', 'beechat:connection:state:online' => 'Online', 'beechat:connection:state:failed' => 'Failed', 'beechat:connection:state:disconnecting' => 'Disconnecting...', 'beechat:chat:self' => 'Me', 'beechat:chat:composing' => ' is typing.', 'beechat:box:minimize' => 'Minimize', 'beechat:box:close' => 'Close', 'beechat:box:showhide' => 'Show/Hide this chat window', 'beechat:enabled' => 'Chat enabled', 'beechat:disabled' => 'Chat disabled', 'beechat:enablechat' => 'Enable chat', 'beechat:disablechat' => 'Disable chat', 'beechat:domain' => 'Chat domain', 'beechat:dbname' => 'Database name', 'beechat:dbhost' => 'Database host', 'beechat:dbuser' => 'Database user', 'beechat:dbpassword' => 'Database password');
add_translation('en', $en_array);
开发者ID:beechannels,项目名称:beechat,代码行数:4,代码来源:en.php


注:本文中的add_translation函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。