Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media folder "For this" shows with handlebars when on a category. #14

Open
GeekInTheNorth opened this issue Jun 9, 2022 · 3 comments
Open

Comments

@GeekInTheNorth
Copy link

How to Reproduce:

  1. Go into the CMS Editor interface
  2. In the media pane, select the categories tab
  3. Click on any category to edit it
  4. Click on the media pane as if to choose an image to attach to the categories

Expected Behaviour: "For this..." shows as "For this category" (or equivalent)

Actual Behaviour: "For this..." shows as "For this {0}"

image

@RobBlask
Copy link

RobBlask commented Sep 5, 2022

Any action on this issue?

@OptimizelyPrime
Copy link

as a stop-gap measure, you can add an xml file to your lang folder with the following:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<languages>
  <language name="English" id="en">
    <contenttypes>
      <CategoryData>
        <name>Category</name>
      </CategoryData>
    </contenttypes>
  </language>
</languages>

opti will be able to pick it up there an put the token from the name node in there. whatever you want it to be

@nhamlin-prft
Copy link

nhamlin-prft commented Oct 12, 2023

It appears the package has lang/geta.epicategories.xml with the right structure, but that XML isn't being picked up after installing the package. If you add that raw file to the website's lang folder then the labels show up correctly. This could be added to the readme file in the installation instructions.

Note 1: This is how the sandbox does it. The XML was copied into the sandbox/Foundation/src/Foundation/lang folder.
Note 2: This also affects the Blocks tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants