Skip to content

Commit

Permalink
translations
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Nov 5, 2024
1 parent 076ae43 commit 2e80733
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/bundle/Resources/config/bazinga_js_translation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ active_domains:
- 'ibexa_user_invitation'
- 'ibexa_content_type'
- 'ibexa_dropdown'
- 'ibexa_popup_menu'
- 'messages'
16 changes: 16 additions & 0 deletions src/bundle/Resources/translations/ibexa_popup_menu.en.xliff
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:jms="urn:jms:translation" version="1.2">
<file source-language="en" target-language="en" datatype="plaintext" original="not.available">
<header>
<tool tool-id="JMSTranslationBundle" tool-name="JMSTranslationBundle" tool-version="1.1.0-DEV"/>
<note>The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.</note>
</header>
<body>
<trans-unit id="e4f3034ecab5de30a4ea60991375e4c6ccb21ed1" resname="ibexa_popup_menu.search.placeholder">
<source>Search...</source>
<target state="new">Search...</target>
<note>key: ibexa_popup_menu.search.placeholder</note>
</trans-unit>
</body>
</file>
</xliff>
4 changes: 2 additions & 2 deletions src/bundle/Resources/translations/popup_menu.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<note>The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.</note>
</header>
<body>
<trans-unit id="6229ba6fcf2f54495e3381f913742470bb949a28" resname="popup_menu.placeholder">
<trans-unit id="0df91173d20ee5fe6b4e8650eb665aa0376dd9c1" resname="popup_menu.search.placeholder">
<source>Search...</source>
<target state="new">Search...</target>
<note>key: popup_menu.placeholder</note>
<note>key: popup_menu.search.placeholder</note>
</trans-unit>
</body>
</file>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useRef, createContext, useState, useEffect } from 'react';
import PropTypes from 'prop-types';

import { getRootDOMElement } from '@ibexa-admin-ui/src/bundle/Resources/public/js/scripts/helpers/context.helper';
import { createCssClassNames } from '../helpers/css.class.names';

export const DraggableContext = createContext();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const PopupMenu = ({ extraClasses, footer, items, onItemClick, positionOffset, r
'c-popup-menu--visible': isVisible,
[extraClasses]: true,
});
const searchPlaceholder = Translator.trans(/*@Desc("Search...")*/ 'popup_menu.placeholder', {}, 'popup_menu');
const searchPlaceholder = Translator.trans(/*@Desc("Search...")*/ 'ibexa_popup_menu.search.placeholder', {}, 'ibexa_popup_menu');
const updateFilterValue = (event) => setFilterText(event.target.value);
const resetInputValue = () => setFilterText('');
const showItem = (item) => {
Expand Down

0 comments on commit 2e80733

Please sign in to comment.